sockaddr_in | |
| int | uv::init (::sockaddr_in &_sin) |
Initialize a sockaddr_in structure. | |
| int | uv::init (::sockaddr_in &_sin, const char *_ip, const char *_port=nullptr) |
Initialize a sockaddr_in structure from strings containing an IPv4 address and (optionally) a port. More... | |
sockaddr_in6 | |
| int | uv::init (::sockaddr_in6 &_sin6) |
Initialize a sockaddr_in6 structure. | |
| int | uv::init (::sockaddr_in6 &_sin6, const char *_ip, const char *_port=nullptr) |
Initialize a sockaddr_in6 structure from strings containing an IPv6 address and (optionally) a port. More... | |
addrinfo | |
| int | uv::init (::addrinfo &_ai, decltype(::addrinfo::ai_family) _family=AF_UNSPEC, decltype(::addrinfo::ai_socktype) _socktype=0, decltype(::addrinfo::ai_flags) _flags=AI_ADDRCONFIG) |
Initialize an addrinfo structure for to be used as a hints argument in uv::getaddrinfo request. More... | |
sockaddr_in, ipv6(7):sockaddr_in6, socket(7):sockaddr_storage.sockaddr_in, sockaddr_in6, sockaddr_storage.
|
inline |
Initialize a sockaddr_in structure from strings containing an IPv4 address and (optionally) a port.
uv_ip4_addr(), uv_inet_pton(). inet_pton().RtlIpv4StringToAddressEx(), InetPton(). Definition at line 47 of file netstruct.hpp.
|
inline |
Initialize a sockaddr_in6 structure from strings containing an IPv6 address and (optionally) a port.
uv_ip6_addr(), uv_inet_pton(). inet_pton().RtlIpv6StringToAddressEx(), InetPton(). Definition at line 72 of file netstruct.hpp.
|
inline |
Initialize an addrinfo structure for to be used as a hints argument in uv::getaddrinfo request.
The _family argument might be AF_UNSPEC or AF_INET or AF_INET6 or (Windows only) AF_NETBIOS.
The _socktype argument might be SOCK_DGRAM or SOCK_STREAM.
The _flags argument can be a combination of the following values:
Linux only - extensions for Internationalized Domain Names:
Windows only:
getaddrinfo().addrinfo, getaddrinfo(), GetAddrInfoEx(). Definition at line 158 of file netstruct.hpp.