comparison channel.h @ 1074:10f198d4a308

Make main socket nonblocking. Limit writequeue size.
author Matt Johnston <matt@ucc.asn.au>
date Fri, 20 Mar 2015 23:36:42 +0800
parents 01eea88963f3
children 93e29b0ef8dc
comparison
equal deleted inserted replaced
1073:88043f9d40bd 1074:10f198d4a308
104 /* Callback for connect_remote */ 104 /* Callback for connect_remote */
105 void channel_connect_done(int result, int sock, void* user_data, const char* errstring); 105 void channel_connect_done(int result, int sock, void* user_data, const char* errstring);
106 106
107 void chaninitialise(const struct ChanType *chantypes[]); 107 void chaninitialise(const struct ChanType *chantypes[]);
108 void chancleanup(); 108 void chancleanup();
109 void setchannelfds(fd_set *readfd, fd_set *writefd); 109 void setchannelfds(fd_set *readfds, fd_set *writefds, int allow_reads);
110 void channelio(fd_set *readfd, fd_set *writefd); 110 void channelio(fd_set *readfd, fd_set *writefd);
111 struct Channel* getchannel(); 111 struct Channel* getchannel();
112 /* Returns an arbitrary channel that is in a ready state - not 112 /* Returns an arbitrary channel that is in a ready state - not
113 being initialised and no EOF in either direction. NULL if none. */ 113 being initialised and no EOF in either direction. NULL if none. */
114 struct Channel* get_any_ready_channel(); 114 struct Channel* get_any_ready_channel();