|
| ExternalClientSession (RPCCallStore &, int, int sessionId, MessageDispatcher *dispatcher, const string &interfaceId) |
| Constructor, initializes the object.
|
|
| AbstractSession (const string &interfaceId, int clientId, int sessionId, MessageDispatcher *dispatcher) |
| Constructor.
|
|
MessageSubscriptionToken | addMessageSubscription (const string &messageType, MessageReceivedFunction function) |
| Subscribe all messages of type.
|
|
MessageSubscriptionToken | addMessageTypeSubscription (int messageType, MessageReceivedFunction function) |
| Subscribe all messages of Message Package type.
|
|
MessageSubscriptionToken | addRegexMessageSubscription (const string ®ex, MessageReceivedFunction function) |
| Subscribe all messages that match a regular expression.
|
|
void | changeMessageDispatcher (MessageDispatcher *dispatcher) |
| Changes message dispatcher on the fly.
|
|
void | enableVerboseLogging (bool enable) |
| Enables verbose logging for the functionality.
|
|
ClientDescriptorSharedPtr | getClientDescriptor () const |
| Retrieve client descriptor.
|
|
int | getClientId () const |
| Retrieve client id of the session.
|
|
int | getId () const |
| Retrieve id of the session.
|
|
const string & | getInterfaceId () const |
| Retrieve id of the interface.
|
|
int | getServerClientId () const |
| Retrieve server client identifier of the session.
|
|
const ServiceAttributes & | getServiceAttributes () |
|
virtual void | initialize () |
| Initializes this session.
|
|
void | receive (const MessagePackage &message) |
| Asks session to process received message.
|
|
void | removeMessageSubscription (const string &messageType, MessageSubscriptionToken token) |
| Remove message subscription.
|
|
void | removeMessageTypeSubscription (int messageType, MessageSubscriptionToken token) |
| Remove message subscription.
|
|
void | removeRegexMessageSubscription (const string ®ex, MessageSubscriptionToken token) |
| Remove regular expression message subscription.
|
|
void | setClientDescriptor (ClientDescriptorSharedPtr clientDescriptor) |
| Saves a client descriptor of the client who created this session.
|
|
void | setClientP2PRoutingInstructions (shared_ptr< p2p::P2PClient::RoutingHandler > routingHandler) |
| Configure P2P routing instructions for the client.
|
|
void | setGenericInvoker (GenericInvoker *invoker) |
| Setups generic invocation mechanism.
|
|
void | setServerClientId (int id) |
| Sets servers identifier of the client this session belongs to.
|
|
void | setServerP2PRouter (p2p::P2PServerSharedPtr serverRouter) |
| Configure P2P routing for server scope.
|
|
void | terminate () |
| Terminates the session.
|
|
bool | transmit (const MessagePackage &message) |
| Sends outgoing message to network.
|
|
bool | transmit (MessagePackageSharedPtr message, uint32_t call_handle=0) |
| Sends outgoing message to network.
|
|
virtual void | uninitialize () |
| Un-initializes this session.
|
|
void | updateEnabledState (bool newEnabledState) |
| Update the enabled state of this session.
|
|
virtual | ~AbstractSession () |
| Destructor.
|
|