1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>4. Client Side</title><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="index.html" title="YAZ User's Guide and Reference"><link rel="up" href="comstack.html" title="Chapter 11. The COMSTACK Module"><link rel="prev" href="comstack.common.html" title="3. Common Functions"><link rel="next" href="comstack.server.html" title="5. Server Side"></head><body><link rel="stylesheet" type="text/css" href="common/style1.css"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">4. Client Side</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="comstack.common.html">Prev</a> </td><th width="60%" align="center">Chapter 11. The COMSTACK Module</th><td width="20%" align="right"> <a accesskey="n" href="comstack.server.html">Next</a></td></tr></table><hr></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="comstack.client"></a>4. Client Side</h2></div></div></div><pre class="synopsis">
2 int cs_connect(COMSTACK handle, void *address);
4 Initiate a connection with the target at <code class="literal">address</code>
5 (more on addresses below). The function will return 0 on success, and 1 if
6 the operation does not complete immediately (this will only
7 happen on a nonblocking endpoint). In this case, use
8 <code class="function">cs_rcvconnect</code> to complete the operation,
9 when <code class="function">select(2)</code> or <code class="function">poll(2)</code>
10 reports input pending on the association.
11 </p><pre class="synopsis">
12 int cs_rcvconnect(COMSTACK handle);
14 Complete a connect operation initiated by <code class="function">cs_connect()</code>.
15 It will return 0 on success; 1 if the operation has not yet completed (in
16 this case, call the function again later); -1 if an error has occurred.
17 </p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="comstack.common.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="comstack.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="comstack.server.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">3. Common Functions </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> 5. Server Side</td></tr></table></div></body></html>