Initial commit
[yaz4j-moved-to-github.git] / dependencies / yaz_3.0.14 / doc / comstack.summary.html
1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>9. Summary and Synopsis</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.diagnostics.html" title="8. Diagnostics"><link rel="next" href="future.html" title="Chapter 12. Future Directions"></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">9. Summary and Synopsis</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="comstack.diagnostics.html">Prev</a> </td><th width="60%" align="center">Chapter 11. The COMSTACK Module</th><td width="20%" align="right"> <a accesskey="n" href="future.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.summary"></a>9. Summary and Synopsis</h2></div></div></div><pre class="synopsis">
2     #include &lt;yaz/comstack.h&gt;
3     
4     #include &lt;yaz/tcpip.h&gt;  /* this is for TCP/IP and SSL support */
5     #include &lt;yaz/unix.h&gt;   /* this is for UNIX sockeL support */
6     
7      
8     COMSTACK cs_create(CS_TYPE type, int blocking, int protocol);
9      
10     COMSTACK cs_createbysocket(int s, CS_TYPE type, int blocking,
11                                int protocol);
12     COMSTACK cs_create_host (const char *str, int blocking,
13                              void **vp);
14      
15     int cs_bind(COMSTACK handle, int mode);
16      
17     int cs_connect(COMSTACK handle, void *address);
18      
19     int cs_rcvconnect(COMSTACK handle);
20      
21     int cs_listen(COMSTACK handle);
22
23     COMSTACK cs_accept(COMSTACK handle);
24
25     int cs_put(COMSTACK handle, char *buf, int len);
26
27     int cs_get(COMSTACK handle, char **buf, int *size);
28
29     int cs_more(COMSTACK handle);
30
31     int cs_close(COMSTACK handle);
32
33     int cs_look(COMSTACK handle);
34
35     void *cs_straddr(COMSTACK handle, const char *str);
36
37     char *cs_addrstr(COMSTACK h);
38
39     extern int cs_errno;
40
41     void cs_perror(COMSTACK handle char *message);
42
43     const char *cs_stackerr(COMSTACK handle);
44
45     extern const char *cs_errlist[];
46    </pre></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="comstack.diagnostics.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="future.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">8. Diagnostics </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 12. Future Directions</td></tr></table></div></body></html>