Sirikata
Public Member Functions | Public Attributes
Sirikata::TCPSpaceNetwork::RemoteSession Struct Reference

RemoteSession is the data structure that ensures the appearance of a continuous connection to a remote server. More...

Collaboration diagram for Sirikata::TCPSpaceNetwork::RemoteSession:

List of all members.

Public Member Functions

 RemoteSession (ServerID sid)
 ~RemoteSession ()

Public Attributes

ServerID logical_endpoint
RemoteStreamPtr remote_stream
RemoteStreamPtr closing_stream
RemoteStreamPtr pending_out

Detailed Description

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).


Constructor & Destructor Documentation

Sirikata::TCPSpaceNetwork::RemoteSession::RemoteSession ( ServerID  sid)
Sirikata::TCPSpaceNetwork::RemoteSession::~RemoteSession ( )

Member Data Documentation


The documentation for this struct was generated from the following files: