No need to store event mask in the user object since libevent already does it for us.

This commit is contained in:
Jan Vidar Krey
2009-07-25 03:26:59 +02:00
parent 0ec4913e15
commit dc90245ade
2 changed files with 5 additions and 11 deletions

View File

@@ -97,11 +97,8 @@ struct user_net_io
int sd; /** socket descriptor */
struct event event; /** libevent struct for read/write events */
struct event timeout; /** timeout handling */
int events; /** currently set events, used to reduce event_{add,del,set} calls */
struct hub_recvq* recv_queue;
struct hub_sendq* send_queue;
time_t tm_connected; /** time when user connected */
time_t tm_last_read; /** time the user last received something from the hub */
time_t tm_last_write; /** time the user last sent something to the hub */