/* Back pointer to the primary router of this server. */
SilcServerEntry router;
- /* SILC server task queues */
+ /* SILC server schduler and task queues */
+ SilcSchedule schedule;
SilcTaskQueue io_queue;
SilcTaskQueue timeout_queue;
SilcTaskQueue generic_queue;
silc_task_set_iotype(tmptask, SILC_TASK_WRITE); \
} while(0)
-#define SILC_SET_CONNECTION_FOR_INPUT(fd) \
+#define SILC_SET_CONNECTION_FOR_INPUT(s, fd) \
do { \
- silc_schedule_set_listen_fd((fd), (1L << SILC_TASK_READ)); \
+ silc_schedule_set_listen_fd((s), (fd), (1L << SILC_TASK_READ)); \
} while(0)
-#define SILC_SET_CONNECTION_FOR_OUTPUT(fd) \
+#define SILC_SET_CONNECTION_FOR_OUTPUT(s, fd) \
do { \
- silc_schedule_set_listen_fd((fd), ((1L << SILC_TASK_READ) | \
- (1L << SILC_TASK_WRITE))); \
+ silc_schedule_set_listen_fd((s), (fd), ((1L << SILC_TASK_READ) | \
+ (1L << SILC_TASK_WRITE))); \
} while(0)
/* Prototypes */