NET_PRES_SocketOptionsSet Function

C

bool NET_PRES_SocketOptionsSet(NET_PRES_SKT_HANDLE_T handle, NET_PRES_SKT_OPTION_TYPE option, void* optParam); 

Returns

  • true - Indicates success

  • false - Indicates failure

Description

Various options can be set at the socket level. This function calls directly to the transport layer's OptionSet function, if it exists.

Preconditions

A socket needs to have been opened by NET_PRES_SocketOpen.

Parameters

ParametersDescription
handleThe socket to set options for.
optionThe specific option to be set, this is passed unaltered to the transport layer.
optParamThe option value, this is passed unaltered to the transport layer.