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

ParametersDescription
handleThe socket to bind.
addTypeThe type of address being used. This is passed unaltered to the transport layer.
portThe port to use. This is passed unaltered to the transport layer.
addrThe address to bind to. This is passed unaltered to the transport layer.