openHiTLS API openHiTLS 0.1.0-Alpha1

◆ BSL_SAL_SockRecv()

int32_t BSL_SAL_SockRecv ( int32_t  sockfd,
void *  buff,
size_t  len,
int32_t  flags 
)

Receive the message.

Receive information

注意
none
参数
sockfd[IN] Socket file descriptor ID
buff[IN] Buffer for receiving information
len[IN] Length of the buffer
flags[IN] is generally set to 0.
返回值
Ifthe operation succeeds, the received data length 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.