1.2.2.1.55 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
Parameters | Description |
---|---|
handle | The presentation layer socket handle. |
sigMask | The mask of signals to be reported, this parameter is passed to the transport layer directly. |
handler | signal handler to be called when an event occurs. This parameter is passed to the transport layer directly. |
hParam | Parameter to be used in the handler call. This parameter is passed to the transport layer directly. |