1// Copyright (c) 2012 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4// 5// Protocol for the mux channel that multiplexes multiple channels. 6 7syntax = "proto2"; 8 9option optimize_for = LITE_RUNTIME; 10 11package remoting.protocol; 12 13message MultiplexPacket { 14 // Channel ID. Each peer choses this value when it sends first packet to 15 // the other peer. It unique identified channel this packet belongs to. 16 // Channel ID is direction-specific, i.e. each channel has two IDs 17 // assigned to it: one for receiving and one for sending. 18 optional int32 channel_id = 1; 19 20 // Channel name. The name is used to identify channels before channel ID 21 // is assigned in the first message. This value must be included only 22 // in the first packet for a given channel. All other packets must be 23 // identified using channel ID. 24 optional string channel_name = 2; 25 26 optional bytes data = 3; 27} 28