376 |
uint64_t bytes; /**< Statistics: total bytes sent/received */ |
uint64_t bytes; /**< Statistics: total bytes sent/received */ |
377 |
} recv, send; |
} recv, send; |
378 |
|
|
|
struct Client *client; /**< Client associated with connection */ |
|
379 |
struct AuthRequest *auth; |
struct AuthRequest *auth; |
380 |
struct Listener *listener; /**< listener accepted from */ |
struct Listener *listener; /**< listener accepted from */ |
381 |
dlink_list acceptlist; /**< clients I'll allow to talk to me */ |
dlink_list acceptlist; /**< clients I'll allow to talk to me */ |
387 |
int country_id; /**< ID corresponding to a ISO 3166 country code */ |
int country_id; /**< ID corresponding to a ISO 3166 country code */ |
388 |
|
|
389 |
char *passwd; |
char *passwd; |
390 |
fde_t fd; |
|
391 |
/* Anti-flood stuff. We track how many messages were parsed and how |
/* Anti-flood stuff. We track how many messages were parsed and how |
392 |
* many we were allowed in the current second, and apply a simple |
* many we were allowed in the current second, and apply a simple |
393 |
* decay to avoid flooding. |
* decay to avoid flooding. |
481 |
extern void exit_client(struct Client *, struct Client *, const char *); |
extern void exit_client(struct Client *, struct Client *, const char *); |
482 |
extern int vexit_client_msg(struct Client *, struct Client *, const char *, va_list); |
extern int vexit_client_msg(struct Client *, struct Client *, const char *, va_list); |
483 |
extern int exit_client_msg(struct Client *, struct Client *, const char *, ...); |
extern int exit_client_msg(struct Client *, struct Client *, const char *, ...); |
484 |
|
extern void add_client_to_list(struct Client *); |
485 |
|
extern void remove_client_from_list(struct Client *); |
486 |
extern void check_conf_klines(void); |
extern void check_conf_klines(void); |
487 |
extern void client_init(void); |
extern void client_init(void); |
488 |
extern void dead_link_on_write(struct Client *, int); |
extern void dead_link_on_write(struct Client *, int); |