YAZ User's Guide and Reference
Prev | Chapter 9. The COMSTACK Module | Next

# Client Side

        int cs_connect(COMSTACK handle, void *address);

Initiate a connection with the target at `address` (more onaddresses 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, when `select(2)` reports input pending on the association.

        int cs_rcvconnect(COMSTACK handle);

Complete a connect operation initiated by `cs_connect()`. 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.

Prev | Home | Next
Common Functions | Up | Server Side