- po:pointer to the ISockPort interface
- wFamily:address family (AEE_AF_*). If ISockPort_SelectNetwork() or ISockPort_SelectNetworkEx() was already called for this socket, wFamily should match the address family that was requested for the network.
- nType:socket type
- nProtocol:socket protocol (AEE_IPPROTO_*) or 0 to select the system's default for the given wFamily and nType combination
int ISockPort_OpenEx(ISockPort* po, uint16 wFamily, AEESockType nType, int nProtocol)
AEE_NET_EBADF : socket is already open AEE_NET_ESOCKNOSUPPORT : invalid type AEE_NET_EPROTONOSUPPORT: invalid protocol AEE_NET_EAFNOSUPPORT : invalid family AEE_NET_EPROTOTYPE : wrong protocol for socket type AEE_NET_ENOMEM : out of memory AEE_NET_EINVAL : invalid family for this socket
Other error codes are also possible.