3.1.1.1 State Machine
The following figure and table describe the state machine of the codec at the server end.

Figure 3: Server state diagram
|
State Name |
Description |
|---|---|
|
ServerUninitialized |
This is the initial state of the server. In this state, the server waits for the TS_RFX_CLNT_CAPS_CONTAINER message from the client. On receiving this message, the server processes it as described in section 3.1.5.1. If it finds a compatible TS_RFX_ICAP, it initializes itself and gets into the SendHeaders state. Otherwise, the connection is terminated (section 3.1.5.1). |
|
SendHeaders |
In this state, the server sends the Header message sequence as described in section 3.1.8.3.1 and shown in Figure 17. The server then transitions to the SendFrameData state. |
|
SendFrameData |
In this state, the server sends the encoded frame data messages as described in section 3.1.8.3.1 and shown in Figure 18. The server then transitions to the FrameDataSent state. |
|
FrameDataSent |
If the OperationalMode of the server is image mode, the server transitions to the SendHeaders state. If the OperationalMode is video mode, the server transitions to either the SendFrameData state or the SendHeaders state. |