[DllImport("ws2_32.dll", CharSet = CharSet.Ansi, SetLastError = true)]
public static extern int WSAStringToAddress(
string addressString,
System.Net.Sockets.AddressFamily addressfamily,
IntPtr lpProtocolInfo,
ref SockAddr socketAddress,
ref int socketAddressSize);
VB Signature:
Declare Function WSAStringToAddress Lib "ws2_32.dll" (TODO) As TODO
Parameters:
addressStrings: A pointer to the string that contains the network address to convert.
addressFamily: The address family of the network address
lpProtocolInfo: The WSAPROTOCOL_INFO structure associated with the provider to be used. If this is NULL, the call is routed to the provider of the first protocol supporting the indicated AddressFamily.
socketAddress: A pointer to a buffer that is filled with a sockaddr structure for the address string if the function succeeds.
socketAddressSize: A pointer to the length, in bytes, of the buffer pointed to by the lpAddress parameter.
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.
7/29/2012 8:42:36 PM - -77.124.220.248
TODO - a short description
1/30/2015 9:16:48 AM - -198.169.188.229
TODO - a short description
11/26/2012 8:17:36 AM - 123.211.210.156
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.