More work on epoll.

This commit is contained in:
Jan Vidar Krey
2010-01-17 22:59:51 +01:00
parent 6a4b9c58f4
commit 1c58a85de1
12 changed files with 160 additions and 58 deletions

View File

@@ -30,6 +30,7 @@
struct net_connection;
struct net_timer;
struct net_backend;
/**
* Initialize the network backend.
@@ -42,6 +43,12 @@ extern int net_backend_initialize();
*/
extern void net_backend_shutdown();
/**
* Process the network backend.
*/
extern int net_backend_process();
typedef void (*net_connection_cb)(struct net_connection*, int event, void* ptr);
typedef void (*net_timeout_cb)(struct net_timer*, void* ptr);