add XWRELAY_OTHERCONNECT message

This commit is contained in:
ehouse 2005-09-03 18:32:12 +00:00
parent 48495df7e5
commit 481febe807

View file

@ -26,7 +26,7 @@
/* Set if device is acting a server; cleared if as client */
#define FLAGS_SERVER_BIT 0x01
enum { XWRELAY_NONE /* 0 is an illegal value */
typedef enum { XWRELAY_NONE /* 0 is an illegal value */
, XWRELAY_CONNECT
/* Sent from device to relay to establish connection to relay. Format:
@ -43,6 +43,9 @@ enum { XWRELAY_NONE /* 0 is an illegal value */
XWRELAY_RECONNECT. Format: heartbeat_seconds: 2; connectionID:
2; */
, XWRELAY_OTHERCONNECT /* Another device has [re]joined your game.
Format: ??? */
, XWRELAY_DISCONNECT_YOU
/* Sent from relay when existing connection is terminated.
Format: errorCode: 1 */
@ -64,7 +67,7 @@ enum { XWRELAY_NONE /* 0 is an illegal value */
, XWRELAY_MSG_TORELAY
/* Sent from device to relay. Format: connectionID: 2; src_hostID:
2; dest_hostID: 2 */
};
} XWRelayMsg;
#ifndef CANT_DO_TYPEDEF
typedef unsigned char XWRELAY_Cmd;