openHiTLS API openHiTLS 0.1.0-Alpha1

◆ BSL_SAL_SetSockopt()

int32_t BSL_SAL_SetSockopt ( int32_t  sockId,
int32_t  level,
int32_t  name,
const void *  val,
uint32_t  len 
)

Set the socket

Set the socket

注意
none
参数
sockId[IN] Socket file descriptor ID
level[IN] Level of the option to be set.
name[IN] Options to be set
val[IN] Value of the option.
len[IN] val Length
返回值
Ifthe operation succeeds, BSL_SUCCESS is returned
Ifthe operation fails, BSL_SAL_ERR_NET_SETSOCKOPT is returned.