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

@@ -215,12 +215,13 @@ void net_event(struct net_connection* con, int event, void *arg)
}
}
void net_on_accept(int server_fd, short event, void *arg)
void net_on_accept(struct net_connection* con, int event, void *arg)
{
struct hub_info* hub = (struct hub_info*) arg;
struct hub_probe* probe = 0;
struct ip_addr_encap ipaddr;
const char* addr;
int server_fd = net_con_get_sd(con);
for (;;)
{