Public Member Functions | |
| int | allowDelete (bool bWait=false) |
| Connection () | |
| ClientsThread * | getActiveThread () |
| int | getDataRead () |
| event * | getEvent () |
| u_long | getID () |
| const char * | getIpAddr () |
| const char * | getLocalIpAddr () |
| u_short | getLocalPort () |
| const char * | getLogin () |
| char | getnTries () |
| const char * | getPassword () |
| u_short | getPort () |
| int | getPriority () |
| u_long | getTimeout () |
| int | getToRemove () |
| void | incnTries () |
| int | isForceControl () |
| int | isScheduled () |
| void | setActiveThread (ClientsThread *t) |
| void | setDataRead (int) |
| void | setForceControl (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 | setPassword (const char *) |
| void | setPort (u_short) |
| void | setPriority (int) |
| void | setScheduled (int) |
| void | setTimeout (u_long) |
| void | setToRemove (int) |
| virtual | ~Connection () |
Public Attributes | |
| char * | connectionBuffer |
| Vhost * | host |
| ProtocolBuffer * | protocolBuffer |
| Socket * | socket |
Protected Attributes | |
| int | dataRead |
| event | ev |
| int | forceControl |
| u_long | ID |
| string | ipAddr |
| string | localIpAddr |
| u_short | localPort |
| string | login |
| char | nTries |
| string | password |
| u_short | port |
| int | priority |
| int | scheduled |
| ClientsThread * | thread |
| u_long | timeout |
| int | toRemove |
|
|
Constructor for the Connection class. |
|
|
Destroy the object. |
|
|
Return if the connection may be deleted by the server. |
|
|
Get the thread that is using the connection. |
|
|
Return the number of bytes read. |
|
|
|
|
|
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 connection priority. |
|
|
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. |
|
|
Get if the connection is forced to be parsed. |
|
|
Return if the connection is scheduled. |
|
|
Set the thread that is currently using the connection. |
|
|
Set the number of bytes read.
|
|
|
Force the control 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 password for the user.
|
|
|
Set the port used by the connection.
|
|
|
Set the connection priority.
|
|
|
Set if the connection is scheduled by the server.
|
|
|
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. |
|
|
Libevent event, used by the connections scheduler. |
|
|
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. |
|
|
# of tries for an authorized login. |
|
|
Password used to log in. |
|
|
Remote port used. |
|
|
Connection priority, used by the scheduler. |
|
|
Buffer for the connection struct. Used by protocols. |
|
|
The server has scheduled this connection. |
|
|
Connection socket. |
|
|
|
|
|
Current timeout for the connection. |
|
|
|
1.3.9.1