NET_PRES_SocketBind Function
C
bool NET_PRES_SocketBind(NET_PRES_SKT_HANDLE_T handle, NET_PRES_SKT_ADDR_T addrType, NET_PRES_SKT_PORT_T port, NET_PRES_ADDRESS * addr);
Returns
true - Indicates success
false - Indicates failure
Description
This function calls directly to the transport layer's bind function.
Preconditions
A socket needs to have been opened by NET_PRES_SocketOpen.
Parameters
Parameters | Description |
---|---|
handle | The socket to bind. |
addType | The type of address being used. This is passed unaltered to the transport layer. |
port | The port to use. This is passed unaltered to the transport layer. |
addr | The address to bind to. This is passed unaltered to the transport layer. |