Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

connection Class Reference

#include <connection.h>

Inheritance diagram for connection:

Inheritance graph
[legend]
Collaboration diagram for connection:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 connection ()
bool CreateListener (char *host, int p)
bool BeginLink (char *targethost, int port, char *password)
void TerminateLink (char *targethost)
bool SendPacket (char *message, char *host, int port, long ourkey)
bool RecvPacket (char *message, char *host, int &prt, long &theirkey)
bool SendSYN (char *host, int port)
bool SendACK (char *host, int port, int reply_id)
long GenKey ()

Public Attributes

long key
int fd
char host [256]
long ip
char inbuf [MAXBUF]
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
char internal_addr [1024]

Constructor & Destructor Documentation

connection::connection  
 


Member Function Documentation

bool connection::BeginLink char *    targethost,
int    port,
char *    password
 

bool connection::CreateListener char *    host,
int    p
 

long connection::GenKey  
 

bool connection::RecvPacket char *    message,
char *    host,
int &    prt,
long &    theirkey
 

bool connection::SendACK char *    host,
int    port,
int    reply_id
 

bool connection::SendPacket char *    message,
char *    host,
int    port,
long    ourkey
 

bool connection::SendSYN char *    host,
int    port
 

void connection::TerminateLink char *    targethost
 


Member Data Documentation

long connection::bytes_in
 

Definition at line 47 of file connection.h.

Referenced by userrec::userrec().

long connection::bytes_out
 

Definition at line 48 of file connection.h.

Referenced by userrec::userrec().

long connection::cmds_in
 

Definition at line 49 of file connection.h.

Referenced by userrec::userrec().

long connection::cmds_out
 

Definition at line 50 of file connection.h.

Referenced by userrec::userrec().

int connection::fd
 

Definition at line 43 of file connection.h.

Referenced by serverrec::serverrec(), and userrec::userrec().

bool connection::haspassed
 

Definition at line 51 of file connection.h.

Referenced by userrec::userrec().

char connection::host[256]
 

Definition at line 44 of file connection.h.

time_t connection::idle_lastmsg
 

Definition at line 56 of file connection.h.

Referenced by userrec::userrec().

char connection::inbuf[MAXBUF]
 

Definition at line 46 of file connection.h.

char connection::internal_addr[1024]
 

Definition at line 58 of file connection.h.

long connection::ip
 

Definition at line 45 of file connection.h.

Referenced by userrec::userrec().

long connection::key
 

Definition at line 42 of file connection.h.

time_t connection::lastping
 

Definition at line 54 of file connection.h.

Referenced by serverrec::serverrec(), and userrec::userrec().

time_t connection::nping
 

Definition at line 57 of file connection.h.

Referenced by userrec::userrec().

int connection::port
 

Definition at line 52 of file connection.h.

Referenced by userrec::userrec().

int connection::registered
 

Definition at line 53 of file connection.h.

Referenced by userrec::userrec().

time_t connection::signon
 

Definition at line 55 of file connection.h.

Referenced by serverrec::serverrec(), and userrec::userrec().


The documentation for this class was generated from the following file:
Generated on Fri Apr 2 14:46:14 2004 for InspIRCd by doxygen1.3-rc3