A common client context, containing client-specific information used by MessageServer itself. More...
#include <MessageServer.h>

Public Member Functions | |
| string | name () |
| Returns a string representation for this client context. | |
| void | requireRights (Account::Rights rights) |
Checks whether this client has all of the rights in rights. | |
Public Attributes | |
| FileDescriptor | fd |
| The client's socket file descriptor. | |
| MessageChannel | channel |
| The channel that's associated with the client's socket. | |
| AccountPtr | account |
| The account with which the client authenticated. | |
A common client context, containing client-specific information used by MessageServer itself.
| string Passenger::MessageServer::CommonClientContext::name | ( | ) | [inline] |
Returns a string representation for this client context.
| void Passenger::MessageServer::CommonClientContext::requireRights | ( | Account::Rights | rights | ) | [inline] |
Checks whether this client has all of the rights in rights.
The client will be notified about the result of this check, by sending it a message.
| SecurityException | The client doesn't have one of the required rights. | |
| SystemException | Something went wrong while communicating with the client. | |
| boost::thread_interrupted |
The account with which the client authenticated.
The channel that's associated with the client's socket.
The client's socket file descriptor.
1.6.2