int cs_connect(COMSTACK handle, void *address);
Initiate a connection with the target at
(more on addresses below). The function will return 0 on success, and 1 if
the operation does not complete immediately (this will only
happen on a nonblocking endpoint). In this case, use
cs_rcvconnect to complete the operation,
reports input pending on the association.
int cs_rcvconnect(COMSTACK handle);
Complete a connect operation initiated by
It will return 0 on success; 1 if the operation has not yet completed (in
this case, call the function again later); -1 if an error has occurred.