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

# Summary and Synopsis

        #include <comstack.h>

        #include <tcpip.h>      /* this is for TCP/IP support   */
        #include <xmosi.h>      /* and this is for mOSI support */

        COMSTACK cs_create(CS_TYPE type, int blocking, int protocol);

        COMSTACK cs_createbysocket(int s, CS_TYPE type, int blocking,
                                   int protocol);

        int cs_bind(COMSTACK handle, int mode);

        int cs_connect(COMSTACK handle, void *address);

        int cs_rcvconnect(COMSTACK handle);

        int cs_listen(COMSTACK handle);

        COMSTACK cs_accept(COMSTACK handle);

        int cs_put(COMSTACK handle, char *buf, int len);

        int cs_get(COMSTACK handle, char **buf, int *size);

        int cs_more(COMSTACK handle);

        int cs_close(COMSTACK handle);

        int cs_look(COMSTACK handle);

        struct sockaddr_in *tcpip_strtoaddr(char *str);

        struct netbuf *mosi_strtoaddr(char *str);

        extern int cs_errno;

        void cs_perror(COMSTACK handle char *message);

        const char *cs_stackerr(COMSTACK handle);

        extern const char *cs_errlist[];

Prev | Home | Next
Diagnostics | Up | Future Directions