NET_PRES_TransBind Type

C

typedef bool (* NET_PRES_TransBind)(NET_PRES_SKT_HANDLE_T handle, NET_PRES_TRANS_ADDRESS_TYPE addType, NET_PRES_SKT_PORT_T port, NET_PRES_ADDRESS * address); 

Returns

  • true - Indicates success

  • false - Indicates failure

Description

Transport Layer Bind Function Pointer Prototype This function is called by the presentation layer when an application wants to bind a socket.

Preconditions

A socket needs to have been opened by NET_PRES_TransOpen.

Parameters

ParametersDescription
handleThe handle returned from NET_PRES_TransOpen.
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.
addressThe address to bind to. This is passed unaltered to the transport layer.