openHiTLS API openHiTLS 0.1.0-Alpha1

◆ BSL_SAL_SockSend()

int32_t BSL_SAL_SockSend ( int32_t  sockId,
const void *  msg,
size_t  len,
int32_t  flags 
)

Send a message.

Send messages

Attention
none
Parameters
sockId[IN] Socket file descriptor ID
msg[IN] Message sent
len[IN] Information length
flags[IN] is generally set to 0.
Return values
Ifthe operation succeeds, the length of the sent data is returned.
Ifthe operation fails, a negative value is returned.
Ifthe operation times out or the peer end disables the function, the value 0 is returned.