Developer

API Reference

ISockPort_OpenEx()

Brew Release
Brew MP 1.0.2
See Also
Socket Protocols AEESockType
Description
Opens a SockPort for use with a specific address family, type and protocol
Parameters
  • 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
Interface
Prototype
   int ISockPort_OpenEx(ISockPort* po, uint16 wFamily, AEESockType nType, int nProtocol)
Return
AEE_SUCCESS: socket has been successfully opened with the address family, type and protocol requested
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.
Side Effect
None.
Comment
None.
  • Follow