openHiTLS API openHiTLS 0.1.0-Alpha1

◆ BSL_SAL_SockConnect()

int32_t BSL_SAL_SockConnect ( int32_t  sockId,
BSL_SAL_SockAddr  addr,
size_t  len 
)

Initiate a connection.

Initiate a connection.

Attention
none
Parameters
sockId[IN] Socket file descriptor ID
addr[IN] Address to be connected
len[IN] Address length
Return values
Ifthe operation succeeds, BSL_SUCCESS is returned
Ifthe operation fails, BSL_SAL_ERR_NET_CONNECT is returned.