3.7.5.3 Data and Server Message Exchange

The sequential processing rules for data transfer are as follows:

  1. The state of the tunnel (2) MUST be TUNNEL_STATE_AUTHORIZED, and the state of channel MUST be CHANNEL_STATE_CREATED.

  2. To send RDP data to the target server, the RDG client MUST add it to HTTP_DATA_PACKET (section 2.2.10.6) and send it through the IN channel.

  3. To receive RDP data from the target server, the RDG client receives HTTP_DATA_PACKET (section 2.2.10.6) from the OUT channel.

  4. If the received packet type is PKT_TYPE_REAUTH_MESSAGE, then the RDG client MUST consider it as an HTTP_REAUTH_MESSAGE (section 2.2.10.12) and pass it on to the higher layer accordingly.