summaryrefslogtreecommitdiff
path: root/include/connection.h
blob: d74d6d20f9fda831b07e54b9e5b6c6b4a5edac00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*

$Log$
Revision 1.1  2003/01/26 23:52:59  brain
Modified documentation for base classes
Added base classes

Revision 1.1  2003/01/26 20:15:00  brain
Added server classes for linking


*/

#include "inspircd_config.h" 
#include "base.h"
#include <string>
#include <map.h>
 
#ifndef __CONNECTION_H__ 
#define __CONNECTION_H__ 
 
class connection : public classbase
{
 public:
	int fd;			// file descriptor
	char host[256];		// hostname
	long ip;		// ipv4 address
	char inbuf[MAXBUF];	// recvQ
	long bytes_in;
	long bytes_out;
	long cmds_in;
	long cmds_out;
	bool haspassed;
	int port;
	int registered;
	time_t lastping;
	time_t signon;
	time_t idle_lastmsg;
	time_t nping;
};


#endif