#include <event2/event.h>
+#define TR_MAX_SOCKETS 10
+
/* struct for hanging on to a socket listener event */
struct tr_socket_event {
- int sock_fd; /* the fd for the socket */
- struct event *ev; /* its event */
+ int n_sock_fd; /* how many of those are filled in? */
+ int sock_fd[TR_MAX_SOCKETS]; /* the fd for the socket */
+ struct event *ev[TR_MAX_SOCKETS]; /* its events */
};
/* prototypes */