Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "WSAStringToAddress" in [All]

netapi32

.

Prior 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

Structures

.

        WSAStringToAddress(host + ":" + port, EnumLib.ADDRESS_FAMILIES.AF_INET6, IntPtr.Zero,

.

        WSAStringToAddress(host + ":" + port, EnumLib.ADDRESS_FAMILIES.AF_INET6, IntPtr.Zero,

.

        WSAStringToAddress(host + ":" + port, EnumLib.ADDRESS_FAMILIES.AF_INET6, IntPtr.Zero,

.

        WSAStringToAddress(host + ":" + port, EnumLib.ADDRESS_FAMILIES.AF_INET6, IntPtr.Zero,

ws2_32

.

Use inet_pton Or WSAStringToAddress Instead !

.
Summary
The WSAStringToAddress function converts a network address in its standard text presentation form into its numeric binary form in a sockaddr structure, suitable for passing to Windows Sockets routines that take such a structure.
.

              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(


 
Access PInvoke.net directly from VS: