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].


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

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.