mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
77319b570d
scheme where cookie is used only to connect, and is replaced for reconnects by a relay-generated name that's supposed to be unique across all games on all relays and includes a hostname read in from config file; relay assign non-servers' hostIDs.
18 lines
340 B
C
18 lines
340 B
C
/* -*-mode: C; fill-column: 78; c-basic-offset: 4; -*- */
|
|
|
|
#ifndef _XWRELAY_PRIV_H_
|
|
#define _XWRELAY_PRIV_H_
|
|
|
|
#include <time.h>
|
|
|
|
typedef unsigned char HostID;
|
|
|
|
void logf( const char* format, ... );
|
|
|
|
void killSocket( int socket, char* why );
|
|
|
|
int send_with_length_unsafe( int socket, unsigned char* buf, int bufLen );
|
|
|
|
time_t now();
|
|
|
|
#endif
|