Make sure we have libevent enabled for now, and add macro protection around the areas of the code that still depend on libevent.

This commit is contained in:
Jan Vidar Krey
2009-12-09 17:27:46 +01:00
parent 2e2f93d0a4
commit 4a4de0f2ac
4 changed files with 18 additions and 5 deletions

View File

@@ -52,8 +52,12 @@ struct net_connection
unsigned int flags; /** Connection flags */
void* ptr; /** data pointer */
net_connection_cb callback; /** Callback function */
#ifdef USE_LIBEVENT
struct event event; /** libevent struct for read/write events */
struct event timeout; /** Used for internal timeout handling */
#else
#warning not implemented
#endif
time_t last_recv; /** Timestamp for last recv() */
time_t last_send; /** Timestamp for last send() */
#ifdef SSL_SUPPORT