Sirikata
|
RemoteSession is the data structure that ensures the appearance of a continuous connection to a remote server. More...
Public Member Functions | |
RemoteSession (ServerID sid) | |
~RemoteSession () | |
Public Attributes | |
ServerID | logical_endpoint |
RemoteStreamPtr | remote_stream |
RemoteStreamPtr | closing_stream |
RemoteStreamPtr | pending_out |
RemoteSession is the data structure that ensures the appearance of a continuous connection to a remote server.
The send and receive streams will simply use one of these internally to perform their operations.
Note that these are created in a thread-safe manner (only by getRemoteData()), and should *only be manipulated by handleConnectedStream, handleDisconnectedStream, and handleClosingStreamTimeout*, which will guarantee correct order of operations for thread safety (and which will not conflict with each other since they all work in the network thread).
Sirikata::TCPSpaceNetwork::RemoteSession::RemoteSession | ( | ServerID | sid | ) |
Sirikata::TCPSpaceNetwork::RemoteSession::~RemoteSession | ( | ) |