6 #ifndef INCLUDED_s_bsd_h
7 #define INCLUDED_s_bsd_h
8 #ifndef INCLUDED_sys_types_h
9 #include <sys/types.h> /* size_t, time_t */
10 #define INCLUDED_sys_types_h
12 #ifndef INCLUDED_netinet_in_h
13 #include <netinet/in.h>
14 #define INCLUDED_netinet_in_h
25 * Set server window to a large value for fat pipes,
26 * set client to a smaller size to allow TCP flow control
29 #define SERVER_TCP_WINDOW 61440
30 #define CLIENT_TCP_WINDOW 2048
32 extern void report_error(const char* text, const char* who, int err);
34 * text for report_error
36 extern const char* const BIND_ERROR_MSG;
37 extern const char* const LISTEN_ERROR_MSG;
38 extern const char* const NONB_ERROR_MSG;
39 extern const char* const REUSEADDR_ERROR_MSG;
40 extern const char* const SOCKET_ERROR_MSG;
41 extern const char* const CONNLIMIT_ERROR_MSG;
42 extern const char* const ACCEPT_ERROR_MSG;
43 extern const char* const PEERNAME_ERROR_MSG;
44 extern const char* const POLL_ERROR_MSG;
45 extern const char* const SELECT_ERROR_MSG;
46 extern const char* const CONNECT_ERROR_MSG;
47 extern const char* const SETBUFS_ERROR_MSG;
48 extern const char* const TOS_ERROR_MSG;
49 extern const char* const REGISTER_ERROR_MSG;
52 extern struct Client* LocalClientArray[MAXCONNECTIONS];
53 extern struct irc_sockaddr VirtualHost;
58 extern unsigned int deliver_it(struct Client *cptr, struct MsgQ *buf);
59 extern int connect_server(struct ConfItem* aconf, struct Client* by);
60 extern void release_dns_reply(struct Client* cptr);
61 extern int net_close_unregistered_connections(struct Client* source);
62 extern void close_connection(struct Client *cptr);
63 extern void add_connection(struct Listener* listener, int fd);
64 extern int read_message(time_t delay);
65 extern void init_server_identity(void);
66 extern void close_connections(int close_stderr);
67 extern int init_connection_limits(void);
68 extern void update_write(struct Client* cptr);
70 #endif /* INCLUDED_s_bsd_h */