From 275611fbaaa14824de69bccc68161d5ed195b745 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Fri, 20 Mar 2015 23:36:42 +0800 Subject: Make main socket nonblocking. Limit writequeue size. --- channel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'channel.h') diff --git a/channel.h b/channel.h index 99b1b42..d16cb03 100644 --- a/channel.h +++ b/channel.h @@ -106,7 +106,7 @@ void channel_connect_done(int result, int sock, void* user_data, const char* err void chaninitialise(const struct ChanType *chantypes[]); void chancleanup(); -void setchannelfds(fd_set *readfd, fd_set *writefd); +void setchannelfds(fd_set *readfds, fd_set *writefds, int allow_reads); void channelio(fd_set *readfd, fd_set *writefd); struct Channel* getchannel(); /* Returns an arbitrary channel that is in a ready state - not -- cgit v1.2.3