From 8072bc687cdde94bf245760e73765ebbb4777c7c Mon Sep 17 00:00:00 2001 From: ehouse Date: Sat, 3 Sep 2005 18:32:12 +0000 Subject: [PATCH] add XWRELAY_OTHERCONNECT message --- xwords4/relay/xwrelay.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xwords4/relay/xwrelay.h b/xwords4/relay/xwrelay.h index fee9cd4c8..ebe921c9d 100644 --- a/xwords4/relay/xwrelay.h +++ b/xwords4/relay/xwrelay.h @@ -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;