3.1.5.1 Receiving an MSB_MSG_REQ_CONNECT Packet

If the value of the dwFlags field in the MSB_MSG_REQ_CONNECT packet is 0x0002 and the server does not support delivery of MSB_MSG_IND_PACKET packets over UDP, then the server MUST reject the connection request. In that case, the server MUST respond with an MSB_MSG_RES_CONNECT packet where the hr field is set to an HRESULT failure code. The value of the hr field SHOULD then be set either to 0xC00D001A or to 0x80070057, but the server MAY set the hr field to a different value as long as it corresponds to an HRESULT failure code. For more information about HRESULT codes, see [MS-ERREF].

If the connection is accepted, the server MUST send an MSB_MSG_RES_CONNECT packet with the hr field set to 0x00000000 and MUST follow it with an MSB_MSG_IND_STREAMINFO packet. If the connection is rejected, the server MUST close the TCP connection after having sent the MSB_MSG_RES_CONNECT packet.

If the connection is accepted, then the server transmits the stream as a sequence of MSB_MSG_IND_PACKET packets.