]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - src/socket.cpp
9207135665997a49f383cd8c2dbaaf77d9954e0e
[user/henk/code/inspircd.git] / src / socket.cpp
1 /*       +------------------------------------+
2  *       | Inspire Internet Relay Chat Daemon |
3  *       +------------------------------------+
4  *
5  *  Inspire is copyright (C) 2002-2004 ChatSpike-Dev.
6  *                       E-mail:
7  *                <brain@chatspike.net>
8  *                <Craig@chatspike.net>
9  *     
10  * Written by Craig Edwards, Craig McLure, and others.
11  * This program is free but copyrighted software; see
12  *            the file COPYING for details.
13  *
14  * ---------------------------------------------------
15  */
16
17 using namespace std;
18
19 #include "inspircd_config.h"
20 #include <sys/time.h>
21 #include <sys/resource.h>
22 #include <sys/types.h>
23 #include <string>
24 #include <unistd.h>
25 #include <sstream>
26 #include <iostream>
27 #include <fstream>
28 #include "socket.h"
29 #include "inspircd.h"
30 #include "inspircd_io.h"
31 #include "inspircd_util.h"
32 #include "inspstring.h"
33 #include "helperfuncs.h"
34
35 extern FILE *log_file;
36 extern int boundPortCount;
37 extern int openSockfd[MAXSOCKS];
38 extern time_t TIME;
39 extern bool unlimitcore;
40 extern int MaxConn;
41
42 InspSocket::InspSocket()
43 {
44         this->state = I_DISCONNECTED;
45 }
46
47 InspSocket::InspSocket(std::string host, int port, bool listening)
48 {
49 }
50
51 void InspSocket::Poll()
52 {
53 }
54
55 int InspSocket::OnConnected() { }
56 int InspSocket::OnError() { }
57 int InspSocket::OnDisconnect() { }
58 int InspSocket::OnIncomingConnection() { }
59
60 InspSocket::~InspSocket()
61 {
62 }
63
64 /*
65 int BindSocket (int sockfd, struct sockaddr_in client, struct sockaddr_in server, int port, char* addr)
66 int OpenTCPSocket (void)
67 */