Click to Rate and Give Feedback
MSDN
MSDN Library
Networking
Network Protocols
HTTP Server API
 HTTP_TRANSPORT_ADDRESS Structure
HTTP_TRANSPORT_ADDRESS Structure

The HTTP_TRANSPORT_ADDRESS structure specifies the addresses (local and remote) used for a particular HTTP connection.

Syntax

typedef struct _HTTP_TRANSPORT_ADDRESS {
PSOCKADDR pRemoteAddress;
PSOCKADDR pLocalAddress; } HTTP_TRANSPORT_ADDRESS,
*PHTTP_TRANSPORT_ADDRESS;

Members

pRemoteAddress

A pointer to the remote IP address associated with this connection. For more information about how to access this address, see the Remarks section.

pLocalAddress

A pointer to the local IP address associated with this connection. For more information about how to access this address, see the Remarks section.

Remarks

Although the pRemoteAddress and pLocalAddress members are formally declared as PSOCKADDR, they are in fact PSOCKADDR_IN or PSOCKADDR_IN6 types. Inspect the sa_family member, which is the same in all three structures, to determine how to access the address. If sa_family is equal to AF_INET, then the address is in IPv4 form and can be accessed by casting the members to PSOCKADDR_IN, but if sa_family equals AF_INET6, the address is in IPv6 form and you must cast them to PSOCKADDR_IN6 before accessing the address. Both pLocalAddress and pRemoteAddress are always of the same type; that is they are either both of type PSOCKADDR_IN or both of type PSOCKADDR_IN6.

Requirements

Client Requires Windows Vista or Windows XP SP2.
Server Requires Windows Server 2008 or Windows Server 2003.
Header

Declared in Http.h.

See Also

HTTP Server API Version 1.0 Structures
HTTP_REQUEST


Send comments about this topic to Microsoft

Build date: 2/28/2008

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker