Export (0) Print
Expand All

2.2.32.5.1 SOCKADDR_STORAGE

Socket Address Information is a 128-byte structure formatted as follows:


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

Family

Buffer (variable)

...

Reserved (variable)

...

Family (2 bytes): Address family of the socket. This field MUST contain one of the following values:

Value Meaning

InterNetwork
0x0002

When set, indicates an IPv4 address in the socket.

InterNetworkV6
0x0017

When set, indicates an IPv6 address in the socket.

Buffer (variable): A variable-length buffer that contains the socket address information. If the value of the field Family is 0x0002, this field MUST be interpreted as SOCKADDR_IN, specified in 2.2.32.5.1.1. Otherwise, if the value of the field Family is 0x0017, this field MUST be interpreted as SOCKADDR_IN6, specified in 2.2.32.5.1.2.

Reserved (variable): The remaining bytes within the size of SOCKADDR_STORAGE structure (128 bytes) MUST NOT be used and MUST be reserved. The server SHOULD set this to zero, and the client MUST ignore it on receipt.

 
Show:
© 2014 Microsoft