version 1.36 | | version 1.37 |
---|
| | |
/* | | /* |
* static char *rcsid_newserver_h = | | * static char *rcsid_newserver_h = |
* "$Id: newserver.h,v 1.36 2006/01/09 19:35:12 cavesomething Exp $"; | | * "$Id: newserver.h,v 1.37 2006/01/30 17:00:34 cavesomething Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
int len; | | int len; |
} Buffer; | | } Buffer; |
| | |
| | /* how many times we are allowed to give the wrong password before being kicked. */ |
| | #define MAX_PASSWORD_FAILURES 5 |
| | |
typedef struct NewSocket { | | typedef struct NewSocket { |
enum Sock_Status status; | | enum Sock_Status status; |
int fd; | | int fd; |
| | |
/* If we get an incomplete packet, this is used to hold the data. */ | | /* If we get an incomplete packet, this is used to hold the data. */ |
SockList inbuf; | | SockList inbuf; |
char *host; /* Which host it is connected from (ip address)*/ | | char *host; /* Which host it is connected from (ip address)*/ |
| | uint8 password_fails; /* how many times the player has failed to give the right password */ |
Buffer outputbuffer; /* For undeliverable data */ | | Buffer outputbuffer; /* For undeliverable data */ |
uint32 facecache:1; /* If true, client is caching images */ | | uint32 facecache:1; /* If true, client is caching images */ |
uint32 sent_scroll:1; | | uint32 sent_scroll:1; |