NET_PRES_SocketSignalHandlerRegister Function

C

NET_PRES_SIGNAL_HANDLE NET_PRES_SocketSignalHandlerRegister(NET_PRES_SKT_HANDLE_T handle, uint16_t sigMask, NET_PRES_SIGNAL_FUNCTION handler, const void* hParam); 

Returns

  • valid handle - Indicates the call succeeded

  • null handle - Indicates the call failed (null handler, no such socket, existent handler)

Description

This function calls the transport layer's register signal handle function directly, if it exists

Preconditions

A socket needs to have been opened by NET_PRES_SocketOpen

Parameters

ParametersDescription
handleThe presentation layer socket handle.
sigMaskThe mask of signals to be reported, this parameter is passed to the transport layer directly.
handlersignal handler to be called when an event occurs. This parameter is passed to the transport layer directly.
hParamParameter to be used in the handler call. This parameter is passed to the transport layer directly.