2.2.7 MSB_MSG_REQ_CONNECT
The client sends an MSB_MSG_REQ_CONNECT packet to request a media stream from the server.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Header (16 bytes) |
|||||||||||||||||||||||||||||||
|
... |
|||||||||||||||||||||||||||||||
|
... |
|||||||||||||||||||||||||||||||
|
dwFlags |
|||||||||||||||||||||||||||||||
|
szChannel (variable) |
|||||||||||||||||||||||||||||||
|
... |
|||||||||||||||||||||||||||||||
Header (16 bytes): An MSBMSGBASE packet that defines the packet header. The wMessageId field MUST be set to 0x0007.
dwFlags (4 bytes): An unsigned 32-bit integer that represents the connection type. The value MUST be one of the following.
-
Value
Meaning
0x0002
The media stream is sent to multiple clients simultaneously by using IP multicasting; each client maintains an individual TCP control connection to the server.
0x0001
The media stream is sent to a single client using the current TCP connection.
szChannel (variable): This field SHOULD be set to the word NetShow, which MUST be represented as a string of Unicode characters. The terminating null character SHOULD NOT be included. The size of the string can be determined by subtracting the sizes of all other fields from the value of the cbMessage field in the packet header MSBMSGBASE. The size of the szChannel field MUST be between 0 and 65,514 bytes. Because the szChannel field consists of a Unicode character string, the size of the field must be an even number of bytes.