yumapro  24.10-3
YumaPro SDK
Loading...
Searching...
No Matches
NCX TCP Support

TCP Support for Non-Blocking Connect. More...

Collaboration diagram for NCX TCP Support:

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...
 

Detailed Description

TCP Support for Non-Blocking Connect.

Function Documentation

◆ ncx_tcp_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'.

Parameters
sockfdFile descriptor to use for the connect
namestruct with prepared destination address
namelensocket descriptor struct length
timeout_secnumber of seconds to wait; 0 == use blocking mode
[out]cp_errnopointer to return errno status number if error
Returns
status
Return values
-1some error occurred; errno in *cp_errno
0Success
Here is the caller graph for this function: