--- a/src/sock_tcp.h Sun Feb 22 10:16:28 2009 +0200
+++ b/src/sock_tcp.h Sat Feb 28 17:39:37 2009 +0200
@@ -16,8 +16,8 @@
/* The OS file descriptor */
int fd;
- /* The libevent struct */
- struct event *ev;
+ /* The IO events */
+ struct event *ev_read, *ev_write;
};
#define SOCK_TCP_BASE(sock_ptr) (&(sock_ptr)->base)
@@ -34,8 +34,7 @@
err_t sock_tcp_init_fd (struct sock_tcp *sock, int fd);
/*
- * Initialize sock_tcp.ev to use the socket's fd with the given callback. By default, this is created with EV_READ
- * flags, but is not added.
+ * Initialize sock_tcp.ev_* to use the socket's fd with the given callback. The ev's are not activated yet.
*/
err_t sock_tcp_init_ev (struct sock_tcp *sock, void (*ev_cb) (evutil_socket_t, short, void *), void *arg);