3.1.1.4 Session Object
A Session object encapsulates the state for a socket-based connection between two peer applications.
Role: The role of the Session object. Both peers essentially play the same role since either can initiate or receive a message.
State: The current state of the Session object. The state can be one of the following.
|
Value |
Meaning |
|---|---|
|
WaitingForAck |
A Session object transitions to this state immediately prior to publishing a Session message. This is not always required for each type of message. |
|
WaitingForTransmit |
A Session object transitions to this state when beginning to publish the Session ACK message. |
|
Ready |
The Session object is ready to be used by an application for peer-to-peer communication. A client Session object transitions to this state after receiving the Session ACK message. A server Session object transitions to this state after successfully transmitting the Session ACK message. |
|
Terminated |
The Session object has been terminated by the application, or it timed out. |