WSASocketW
fn
SOCKET WSASocketW(
int af,
int type,
int protocol,
void * lpProtocolInfo,
uint g,
DWORD dwFlags
)Create a socket with extended options.
Parameters
af | Address family (AF_INET, AF_INET6, etc.). |
type | Socket type (SOCK_STREAM, SOCK_DGRAM, etc.). |
protocol | Protocol (IPPROTO_TCP, IPPROTO_UDP, etc.). |
lpProtocolInfo | Protocol info structure (usually null). |
g | Socket group (usually 0). |
dwFlags | Flags (e.g., WSA_FLAG_OVERLAPPED). |
Returns
Socket descriptor, or INVALID_SOCKET on failure.