wm: glendy

ref: 1986f3905eca9114442405d2b3180eea9bc709bc
dir: /srv.h/

View raw version
#define playersock sockfd[turn % 2]
#define INPUTSIZE 32
#define TIMEOUT 30

extern int id;
extern int sockfd[2];

typedef struct
{
	int fd;
	char *nick;
	int game;	
	int side;
	int opts;
	int state;
	long firstseen;
	long lastseen;
	
	void *thread;
}Client;

typedef struct
{
	int id;
	int difficulty;
	int state;
	int turn;
	int sockfd[2];
	int grid[SzX][SzY];
	char syncmsg[8];
	Client *clients[2];
}Game;