*/
#ifndef INCLUDED_s_bsd_h
#define INCLUDED_s_bsd_h
-#ifndef INCLUDED_config_h
-#include "config.h"
-#endif
#ifndef INCLUDED_sys_types_h
#include <sys/types.h> /* size_t, time_t */
#define INCLUDED_sys_types_h
#endif
+#ifndef INCLUDED_netinet_in_h
+#include <netinet/in.h>
+#define INCLUDED_netinet_in_h
+#endif
struct Client;
struct ConfItem;
struct Listener;
-struct DNSReply;
+struct MsgQ;
+struct irc_in_addr;
/*
* TCP window sizes
extern const char* const SELECT_ERROR_MSG;
extern const char* const CONNECT_ERROR_MSG;
extern const char* const SETBUFS_ERROR_MSG;
+extern const char* const TOS_ERROR_MSG;
+extern const char* const REGISTER_ERROR_MSG;
extern int HighestFd;
extern struct Client* LocalClientArray[MAXCONNECTIONS];
extern int OpenFileDescriptorCount;
-#ifdef VIRTUAL_HOST
-extern struct sockaddr_in vserv;
-#endif
+extern struct irc_sockaddr VirtualHost;
enum PollType {
PT_NONE,
PollReadyFn r_handler;
PollReadyFn w_handler;
};
-
+
/*
* Proto types
*/
-extern size_t deliver_it(struct Client *cptr, const char *str, size_t len);
-extern int connect_server(struct ConfItem* aconf, struct Client* by,
- struct DNSReply* reply);
+extern unsigned int deliver_it(struct Client *cptr, struct MsgQ *buf);
+extern int connect_server(struct ConfItem* aconf, struct Client* by);
extern void release_dns_reply(struct Client* cptr);
extern int net_close_unregistered_connections(struct Client* source);
-extern void init_sys(void);
extern void close_connection(struct Client *cptr);
extern void add_connection(struct Listener* listener, int fd);
extern int read_message(time_t delay);
-extern int init_server_identity(void);
+extern void init_server_identity(void);
+extern void close_connections(int close_stderr);
+extern int init_connection_limits(void);
+extern void update_write(struct Client* cptr);
#endif /* INCLUDED_s_bsd_h */