/[svn]/branches/newio/include/s_bsd.h
ViewVC logotype

Diff of /branches/newio/include/s_bsd.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2390 by michael, Tue Jul 9 18:55:53 2013 UTC revision 2391 by michael, Thu Jul 11 20:57:08 2013 UTC
# Line 40  Line 40 
40  /** Default TCP window size for client connections. */  /** Default TCP window size for client connections. */
41  #define CLIENT_TCP_WINDOW 2048  #define CLIENT_TCP_WINDOW 2048
42    
   
   
 /* Type of IO */  
 #define COMM_SELECT_READ                1  
 #define COMM_SELECT_WRITE               2  
   
 /* How long can comm_select() wait for network events [milliseconds] */  
 #define SELECT_DELAY    500  
   
43  struct Client;  struct Client;
44  struct MaskItem;  struct MaskItem;
45  struct Listener;  struct Listener;
46    struct MsgQ;
47    
48    /** Result of an input/output operation. */
49    typedef enum IOResult
50    {
51      IO_FAILURE = -1, /**< Serious I/O error (not due to blocking). */
52      IO_BLOCKED = 0,  /**< I/O could not start because it would block. */
53      IO_SUCCESS = 1   /**< I/O succeeded. */
54    } IOResult;
55    
56  /*  /*
57   * text for report_error   * text for report_error
# Line 76  extern void close_connection(struct Clie Line 76  extern void close_connection(struct Clie
76  extern void report_error(int, const char *, const char *, int);  extern void report_error(int, const char *, const char *, int);
77    
78  extern int get_sockerr(int);  extern int get_sockerr(int);
79  extern int ignoreErrno(int);  extern int os_set_reuseaddr(int);
80    extern int os_set_sockbufs(int, unsigned int, unsigned int);
81    extern int os_set_tos(int, int);
82    extern int os_disable_options(int);
83    extern int os_set_listen(int, int);
84    extern IOResult os_recv_nonb(int, char *, unsigned int, unsigned int *);
85    extern IOResult os_recvfrom_nonb(int, char *, unsigned int, unsigned int *,
86                                     struct irc_ssaddr *);
87    extern IOResult os_send_nonb(int, const char *, unsigned int, unsigned int *);
88    extern IOResult os_sendv_nonb(int, struct MsgQ *, unsigned int *, unsigned int *);
89    
90    
91  extern void comm_settimeout(fde_t *, time_t, PF *, void *);  extern void comm_settimeout(fde_t *, time_t, PF *, void *);
92  extern void comm_setflush(fde_t *, time_t, PF *, void *);  extern void comm_setflush(fde_t *, time_t, PF *, void *);
# Line 93  extern void init_netio(void); Line 103  extern void init_netio(void);
103  extern void comm_setselect(fde_t *, unsigned int, PF *, void *, time_t);  extern void comm_setselect(fde_t *, unsigned int, PF *, void *, time_t);
104  extern int read_message (time_t, unsigned char);  extern int read_message (time_t, unsigned char);
105  extern void comm_select(void);  extern void comm_select(void);
 extern void check_can_use_v6(void);  
106  #ifdef IPV6  #ifdef IPV6
107  extern void remove_ipv6_mapping(struct irc_ssaddr *);  extern void remove_ipv6_mapping(struct irc_ssaddr *);
108  #endif  #endif

Legend:
Removed from v.2390  
changed lines
  Added in v.2391

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28