Author: Isomer <isomer@coders.net>
[ircu2.10.12-pk.git] / include / s_bsd.h
index 59dcc5f939f7b7dcc3935437acc27aa1629bb293..b9a88564dbb59b1000f26aa8fe2cd8fa333a5792 100644 (file)
 #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;
 
 /*
  * TCP window sizes
@@ -43,6 +48,7 @@ extern const char* const POLL_ERROR_MSG;
 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 int            HighestFd;
@@ -74,7 +80,7 @@ struct Pollable {
 /*
  * Proto types
  */
-extern unsigned int deliver_it(struct Client *cptr, const char *str, unsigned int len);
+extern unsigned int deliver_it(struct Client *cptr, struct MsgQ *buf);
 extern int connect_server(struct ConfItem* aconf, struct Client* by,
                           struct DNSReply* reply);
 extern void release_dns_reply(struct Client* cptr);
@@ -82,8 +88,9 @@ extern int  net_close_unregistered_connections(struct Client* source);
 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 set_virtual_host(struct in_addr addr);
 
 #endif /* INCLUDED_s_bsd_h */