1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
7 * <brain@chatspike.net>
8 * <Craig@chatspike.net>
10 * Written by Craig Edwards, Craig McLure, and others.
11 * This program is free but copyrighted software; see
12 * the file COPYING for details.
14 * ---------------------------------------------------
17 #ifndef INSPIRCD_SOCKET_H
18 #define INSPIRCD_SOCKET_H
20 #include <arpa/inet.h>
22 #include <sys/resource.h>
23 #include <sys/types.h>
24 #include <sys/socket.h>
26 #include <netinet/in.h>
33 #include "inspircd_config.h"
35 /* macros to the relevant system address description structs */
38 typedef struct sockaddr_in6 insp_sockaddr;
39 typedef struct in6_addr insp_inaddr;
43 typedef struct sockaddr_in insp_sockaddr;
44 typedef struct in_addr insp_inaddr;
49 bool BindSocket(int sockfd, insp_sockaddr client, insp_sockaddr server, int port, char* addr);
50 int BindPorts(bool bail);