Adding p2p message type.

This commit is contained in:
tihot_jk 2012-10-15 02:13:22 -07:00
parent ba473ee9c9
commit 019fe8fc36
1 changed files with 11 additions and 3 deletions

View File

@ -23,8 +23,9 @@ message ClientMessage {
TEST_SESSION_MESSAGE = 200;
PING_REQUEST = 300;
PING_ACK = 301;
TEST_CLIENT_MESSAGE = 302;
PING_ACK = 301;
PEER_MESSAGE = 302;
TEST_CLIENT_MESSAGE = 303;
SERVER_GENERIC_ERROR = 1000;
SERVER_REJECTION_ERROR = 1001;
@ -57,7 +58,8 @@ message ClientMessage {
// Client-Client messages (to/from)
optional PingRequest ping_request = 300;
optional PingAck ping_ack = 301;
optional TestClientMessage test_client_message = 302;
optional PeerMessage peer_message = 302;
optional TestClientMessage test_client_message = 303;
// Server-to-Client errors
optional ServerGenericError server_generic_error = 1000;
@ -142,6 +144,12 @@ message PingAck {
}
// route_to: client:[CLIENT_ID]
// generic message between clients
message PeerMessage {
optional string message = 1;
}
// route_to: client:[CLIENT_ID]
// a test message used by ruby-client currently. just gives a way to send directly to another client
message TestClientMessage {