openHiTLS API openHiTLS 0.1.0-Alpha1

◆ BSL_SAL_Select()

int32_t BSL_SAL_Select ( int32_t  nfds,
void *  readfds,
void *  writefds,
void *  exceptfds,
void *  timeout 
)

Check the socket descriptor.

Check the socket descriptor.

注意
None
参数
nfds[IN] Total number of file descriptors that are listened on
readfds[IN] Readable file descriptor (optional)
writefds[IN] Descriptor of a writable file. This parameter is optional.
exceptfds[IN] Exception file descriptor (optional)
timeout[IN] Set the timeout interval.
返回值
Ifthe operation succeeds, Number of ready descriptors are returned;
Ifthe operation fails, a negative value is returned;
Ifthe operation times out, 0 is returned