2.2.1 SOCKADDR_IN
The SOCKADDR_IN structure is built as if it were on a little-endian machine and is treated as a byte array. For more information, see [SOCKADDR].
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
AddressFamily |
Port |
||||||||||||||||||||||||||||||
Address |
|||||||||||||||||||||||||||||||
Padding |
|||||||||||||||||||||||||||||||
... |
AddressFamily (2 bytes): Address family. It MUST be 0x0002.
Port (2 bytes): IP port.
Address (4 bytes): IP address, as specified in [RFC791].
Padding (8 bytes): MUST be set to zero when sent and MUST be ignored on receipt.