hdr (8 bytes): An structure. Its packetType field is set to PKT_TYPE_CHANNEL_RESPONSE. errorCode (4 An unsigned integer representing the error generated from the RDG server in the process of creating a , in an HRESULT format. fieldsPresent (2 An unsigned short representing the flags values defined in the enumeration. reserved (2 Reserved for future use. HTTP_CHANNEL_RESPONSE_OPTIONAL Structure This packet is optionally sent by the RDG server in response to a channel creation request. 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 channelId udpPort authnCookie (variable) ... channelId (4 bytes): An unsigned integer representing the channelId field of the corresponding structure. udpPort (2 bytes): An unsigned short representing the port number of the RDGUDP listener. An structure. It contains the cookie to be used for the RDGUDP connection authnCookie (variable): authentication in the UDPAuthCookie ADM element format. HTTP_DATA_PACKET Structure This packet is used for sending or receiving RDP data. 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 hdr ... cbDataLen data (variable) ... hdr (8 An structure. Its packetType field is set to PKT_TYPE_DATA. cbDataLen (2 bytes): An unsigned short representing the length of data in the data field. data (variable): An of bytes representing data. HTTP_EXTENDED_AUTH_PACKET Structure This packet is used for extended authorization messages from the RDG server to the RDG client.
hdr (8 bytes): An structure. Its packetType field is set to PKT_TYPE_CHANNEL_RESPONSE. errorCode (4 An unsigned integer representing the error generated from the RDG server in the process of creating a , in an HRESULT format. fieldsPresent (2 An unsigned short representing the flags values defined in the enumeration. reserved (2 Reserved for future use. HTTP_CHANNEL_RESPONSE_OPTIONAL Structure This packet is optionally sent by the RDG server in response to a channel creation request. 0 1 2 3 4 5 6 7 8 9 1 0 1 2 3 4 5 6 7 8 9 2 0 1 2 3 4 5 6 7 8 9 3 0 1 channelId udpPort authnCookie (variable) ... channelId (4 bytes): An unsigned integer representing the channelId field of the corresponding structure. udpPort (2 bytes): An unsigned short representing the port number of the RDGUDP listener. authnCookie (variable): An structure. It contains the cookie to be used for the RDGUDP connection authentication in the UDPAuthCookie ADM element format. HTTP_DATA_PACKET Structure This packet is used for sending or receiving RDP data. 0 1 2 3 4 5 6 7 8 9 1 0 1 2 3 4 5 6 7 8 9 2 0 1 2 3 4 5 6 7 8 9 3 0 1 hdr ... cbDataLen data (variable) ... hdr (8 An structure. Its packetType field is set to PKT_TYPE_DATA. cbDataLen (2 bytes): An unsigned short representing the length of data in the data field. data (variable): An of bytes representing data. HTTP_EXTENDED_AUTH_PACKET Structure This packet is used for extended authorization messages from the RDG server to the RDG client.