#include <ServerInterface.h>
Inheritance diagram for net::ServerInterface:

Public Member Functions | |
| ServerInterface () | |
| Constructor for ServerInterface. | |
| virtual | ~ServerInterface () |
| Virtual destructor for ServerInterface. | |
| PRThread * | createThread (PRThreadType type, void(*start)(void *arg), void *arg, PRThreadPriority priority, PRThreadScope scope, PRThreadState state, PRUint32 stackSize, PRInt32 index) |
| virtual ResponseMessage | ProcessQuery (QueryMessage)=0 |
| Analyzes a query and builds a response message. | |
| int | Run () |
| Checks if the client's ip address is OK then launches the server thread. | |
| void | Stop () |
| Stops the running server thread and closes the open socket. | |
| void | setSock (Socket *) |
| Sets the socket for client/server communication. | |
| int | setIPAuth (string) |
| sets the IP authentification file path | |
| AccessList * | getAccessList () |
| returns the AccessList object containing IP address rules | |
Static Public Attributes | |
| static const int | kCLIENT_QUIT_OK |
| static const int | kWAITING_FOR_DATA |
| static const int | kDESCRIPTOR_OK |
| static const int | kCLIENT_IP_OK |
| static const int | kCOMMAND_NOT_IMPLEMENTED |
| static const int | kDESCRIPTOR_FAILED |
| static const int | kINVALID_CLIENT_IP |
| static const int | kINTERNAL_ERROR |
| static const int | kBUSY |
Protected Attributes | |
| Socket * | mSock |
| PRThread * | mThread |
| AccessList * | mAccessList |
| string | mIPAuthFile |
Friends | |
| void PR_CALLBACK | thread (void *) |
|
|
returns the AccessList object containing IP address rules
|
|
|
Analyzes a query and builds a response message.
Implemented in net::AgentService, and net::ControllerService. |
|
|
sets the IP authentification file path
|
|
|
Sets the socket for client/server communication.
|
|
|
AccessList containing the allowed and denied hosts/networks |
|
|
Path of the IP auth file |
|
|
Socket on which data is received |
|
|
Client handling thread |
1.4.4