yumapro
24.10-2
YumaPro SDK
|
TCP Support for Non-Blocking Connect. More...
Functions | |
int | ncx_tcp_connect (int sockfd, struct sockaddr *name, socklen_t namelen, unsigned short timeout_sec, int *cp_errno) |
Initiate a TCP socket using 'connect'. More... | |
TCP Support for Non-Blocking Connect.
int ncx_tcp_connect | ( | int | sockfd, |
struct sockaddr * | name, | ||
socklen_t | namelen, | ||
unsigned short | timeout_sec, | ||
int * | cp_errno | ||
) |
Initiate a TCP socket using 'connect'.
sockfd | File descriptor to use for the connect | |
name | struct with prepared destination address | |
namelen | socket descriptor struct length | |
timeout_sec | number of seconds to wait; 0 == use blocking mode | |
[out] | cp_errno | pointer to return errno status number if error |
-1 | some error occurred; errno in *cp_errno |
0 | Success |