mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-15 15:41:24 +01:00
work on detecting duplicate packets and devices that have reconnected
on a different socket; print all present seeds for debugging.
This commit is contained in:
parent
ac8891016f
commit
e1c99f53cd
1 changed files with 6 additions and 1 deletions
|
@ -94,7 +94,10 @@ class CookieRef {
|
|||
int GetHeartbeat() { return m_heatbeat; }
|
||||
int SocketForHost( HostID dest );
|
||||
|
||||
/* connect case */
|
||||
bool AlreadyHere( unsigned short seed, int socket );
|
||||
/* reconnect case */
|
||||
bool AlreadyHere( HostID hid, unsigned short seed, int socket );
|
||||
bool GameOpen( const char* cookie );
|
||||
|
||||
/* for console */
|
||||
|
@ -127,7 +130,7 @@ class CookieRef {
|
|||
void logf( XW_LogLevel level, const char* format, ... );
|
||||
|
||||
class CRefEvent {
|
||||
public :
|
||||
public:
|
||||
CRefEvent() { type = XWE_NONE; }
|
||||
CRefEvent( XW_RELAY_EVENT typ ) { type = typ; }
|
||||
XW_RELAY_EVENT type;
|
||||
|
@ -243,6 +246,8 @@ class CookieRef {
|
|||
void send_stored_messages( HostID dest, int socket );
|
||||
unsigned int count_msgs_stored( void ) { return m_nHostMsgs; }
|
||||
|
||||
void printSeeds( const char* caller );
|
||||
|
||||
/* timer callback */
|
||||
static void s_checkAllConnected( void* closure );
|
||||
static void s_checkAck( void* closure );
|
||||
|
|
Loading…
Reference in a new issue