Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
This structure varies depending on the protocol selected. Except for the sa_familymember, sockaddrcontents are expressed in network byte order.
Syntax
struct sockaddr { u_short sa_family; char sa_data[14]; }; |
Members
- sa_family
-
Address family.
- sa_data[14]
-
Contains the address in a protocol-dependent format.
Remarks
For Winsock functions that use
sockaddr, the
nameparameter is not strictly interpreted as a pointer to a
sockaddrstructure. It is presented in this manner for
Windows Sockets compatibility. The actual structure is interpreted
differently in the context of different address families. The only
requirements are that the first
u_short
is the address family and the total size of the
memory buffer in bytes is
namelen.
The following structure declaration is used with TCP/IP. Other protocols use similar structures.
Copy Code | |
---|---|
struct sockaddr_in { short sin_family; u_short sin_port; struct in_addr sin_addr; char sin_zero[8]; }; |
Requirements
Header | winsock2.h |
Windows Embedded CE | Windows CE .NET 4.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |
See Also
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@systemmanager.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.