Public Member Functions | |
Connection () | |
int | getDataRead () |
int | getForceParsing () |
u_long | getID () |
const char * | getIpAddr () |
const char * | getLocalIpAddr () |
u_short | getLocalPort () |
const char * | getLogin () |
char | getnTries () |
const char * | getPassword () |
u_short | getPort () |
u_long | getTimeout () |
int | getToRemove () |
void | incnTries () |
int | isParsing () |
void | setDataRead (int) |
void | setForceParsing (int) |
void | setID (u_long) |
void | setIpAddr (const char *) |
void | setLocalIpAddr (const char *) |
void | setLocalPort (u_short) |
void | setLogin (const char *) |
void | setnTries (char) |
void | setParsing (int) |
void | setPassword (const char *) |
void | setPort (u_short) |
void | setTimeout (u_long) |
void | setToRemove (int) |
virtual | ~Connection () |
Public Attributes | |
char | connectionBuffer [MYSERVER_KB(8)] |
Vhost * | host |
Connection * | next |
ProtocolBuffer * | protocolBuffer |
Socket | socket |
void * | thread |
Private Attributes | |
int | dataRead |
int | forceParsing |
u_long | ID |
char | ipAddr [MAX_IP_STRING_LEN] |
char | localIpAddr [MAX_IP_STRING_LEN] |
u_short | localPort |
string | login |
char | nTries |
int | parsing |
string | password |
u_short | port |
u_long | timeout |
int | toRemove |
|
Constructor for the Connection class. |
|
Destroy the object. |
|
Return the number of bytes read. |
|
Get if the connection is forced to be parsed. |
|
Return the IDentifier for the connection. |
|
Get the IP address of the client. |
|
Get the IP address of the local interface used to connect to. |
|
Get the local port used to connect to. |
|
Get the login name used by the connection user. |
|
Get the attempts number to authenticate the user. |
|
Return the password submitted by the user. |
|
Get the port used by the connection. |
|
Get the timeout to use with the connection. |
|
Return if the connection must be removed and why. |
|
Increment by 1 the # of attempts to authenticate the user. |
|
Return if the connection is currently parsed. |
|
Set the number of bytes read.
|
|
Force the parsing of this connection on next server loop.
|
|
Set the IDentifier for the connection.
|
|
Set the IP address of the client.
|
|
Set the IP address of the local interface used to connect to.
|
|
Set the local port used to connect to.
|
|
Set the login name for the connection user.
|
|
Set the # of attempts to authenticate the user.
|
|
Set the parsing state.
|
|
Set the password for the user.
|
|
Set the port used by the connection.
|
|
Set the timeout to use with the connection.
|
|
Set the reason to remove the connection.
|
|
This buffer must be used only by the ClientsTHREAD class. |
|
Number of bytes ready in the buffer. |
|
Force the connection to be parsed. |
|
Pointer to an host structure. |
|
Identifier for the connection. |
|
Remote IP address. |
|
Local IP used to connect to. |
|
Local port used to connect to. |
|
Login name. |
|
Next connection in linked list. |
|
# of tries for an authorized login. |
|
The server is parsing this connection. |
|
Password used to log in. |
|
Remote port used. |
|
Buffer for the connecion struct. Used by protocols. |
|
Connection socket. |
|
Pointer to the thread struct that is using the connection. |
|
Current timeout for the connection. |
|
|