mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
add XWRELAY_OTHERCONNECT message
This commit is contained in:
parent
48495df7e5
commit
481febe807
1 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue