blob: 91eb7f0dc7093802b0d223d1de6cfc79099998f9 (
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
|
/*
*/
#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
|