First functional monitoring server - can return the trust router version
[trust_router.git] / include / tr_event.h
index 16a1067..55cc272 100644 (file)
 
 #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 */