1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * Inspire is copyright (C) 2002-2004 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 * ---------------------------------------------------
19 #include "inspircd_config.h"
21 #include <sys/resource.h>
22 #include <sys/types.h>
30 #include "inspircd_io.h"
31 #include "inspircd_util.h"
32 #include "inspstring.h"
33 #include "helperfuncs.h"
35 extern FILE *log_file;
36 extern int boundPortCount;
37 extern int openSockfd[MAXSOCKS];
39 extern bool unlimitcore;
42 InspSocket::InspSocket()
44 this->state = I_DISCONNECTED;
47 InspSocket::InspSocket(std::string host, int port, bool listening)
51 void InspSocket::Poll()
55 int InspSocket::OnConnected() { }
56 int InspSocket::OnError() { }
57 int InspSocket::OnDisconnect() { }
58 int InspSocket::OnIncomingConnection() { }
60 InspSocket::~InspSocket()
65 int BindSocket (int sockfd, struct sockaddr_in client, struct sockaddr_in server, int port, char* addr)
66 int OpenTCPSocket (void)