Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

CSocketAddr Class

This class provides methods for converting host names to host addresses, supporting both IPv4 and IPV6 formats.

class CSocketAddr

Name

Description

CSocketAddr::CSocketAddr

The constructor.

Name

Description

CSocketAddr::FindAddr

Call this method to convert the provided host name to the host address.

CSocketAddr::FindINET4Addr

Call this method to convert the IPv4 host name to the host address.

CSocketAddr::FindINET6Addr

Call this method to convert the IPv6 host name to the host address.

CSocketAddr::GetAddrInfo

Call this method to return a pointer to a specific element in the addrinfo list.

CSocketAddr::GetAddrInfoList

Call this method to return a pointer to the addrinfo list.

This class provides an IP version agnostic approach for looking up network addresses for use with Windows sockets API functions and socket wrappers in libraries.

The members of this class that are used to look up network addresses use the Win32 API function getaddrinfo.

This class supports both IPv4 andIPv6 network addresses.

Header: atlsocket.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.