Desktop Functions: Smart Device Functions:
|
Search Results for "WSAStringToAddress" in [All]netapi32Prior to calling he DsAddressToSiteNames function, a SOCKET_ADDRESS structure must be created for each address that is to be resolved to a site name. This can be done using the WSAStringToAddress method shown in the sample code.
// Call into WSAStringToAddress to build SOCKET_ADDRESS structure from the address string
int result = WSAStringToAddress(
// Check for failure from the WSAStringToAddress method Structures2: sockaddr_in
WSAStringToAddress(host + ":" + port, EnumLib.ADDRESS_FAMILIES.AF_INET6, IntPtr.Zero,
WSAStringToAddress(host + ":" + port, EnumLib.ADDRESS_FAMILIES.AF_INET6, IntPtr.Zero, 3: sockaddr_in6
WSAStringToAddress(host + ":" + port, EnumLib.ADDRESS_FAMILIES.AF_INET6, IntPtr.Zero,
WSAStringToAddress(host + ":" + port, EnumLib.ADDRESS_FAMILIES.AF_INET6, IntPtr.Zero, ws2_324: inet_addr Use inet_pton Or WSAStringToAddress Instead !
EntryPoint = "WSAStringToAddressW" ) ]
public static extern uint WSAStringToAddress (
Declare Function WSAStringToAddress Lib "ws2_32.dll" (TODO) As TODO The application must first call WSAStartup before calling WSAStringToAddress.
int result = WSAStringToAddress( |