mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-03 22:45:13 +08:00
55 lines
681 B
Protocol Buffer
55 lines
681 B
Protocol Buffer
syntax = "proto2";
|
|
|
|
package tcpgateway;
|
|
|
|
|
|
message Int{
|
|
optional int32 value = 1;
|
|
}
|
|
|
|
|
|
message Int64{
|
|
optional int64 value = 1;
|
|
}
|
|
|
|
|
|
message Bool{
|
|
optional bool value = 1;
|
|
}
|
|
|
|
message String{
|
|
optional string value = 1;
|
|
}
|
|
|
|
message Bytes{
|
|
optional bytes value = 1;
|
|
}
|
|
|
|
|
|
message MsgHead
|
|
{
|
|
optional int32 cid = 1;
|
|
}
|
|
|
|
message Msg
|
|
{
|
|
optional MsgHead head = 1;
|
|
optional int32 ret = 2;
|
|
extensions 100 to 10000;
|
|
}
|
|
|
|
message ClientList
|
|
{
|
|
repeated uint64 clientList = 1;
|
|
}
|
|
|
|
message ReplyMessage
|
|
{
|
|
repeated uint64 clientList = 1;
|
|
optional uint32 msgType = 2;
|
|
optional bytes msg = 3;
|
|
}
|
|
|
|
message PlaceHolders
|
|
{
|
|
} |