X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=comstack%2Fcomstack.c;fp=comstack%2Fcomstack.c;h=121d143bed5ffe58b4820d44fa146e281be1cde1;hp=b15eb5f082a836d57e01b22a4436603af0267250;hb=f78b96e6645bb3309719a234ff68699d8fccb975;hpb=827c292b2ffb8314a08f6a6352b68ead05d3ff62 diff --git a/comstack/comstack.c b/comstack/comstack.c index b15eb5f..121d143 100644 --- a/comstack/comstack.c +++ b/comstack/comstack.c @@ -3,7 +3,10 @@ * See the file LICENSE for details. * * $Log: comstack.c,v $ - * Revision 1.9 2001-10-22 13:57:24 adam + * Revision 1.10 2002-06-04 11:36:10 adam + * New COMSTACK: UNIX socket + * + * Revision 1.9 2001/10/22 13:57:24 adam * Implemented cs_rcvconnect and cs_look as described in the documentation. * * Revision 1.8 2001/07/19 19:49:02 adam @@ -42,6 +45,7 @@ #include #include #include +#include static const char *cs_errlist[] = { @@ -86,6 +90,15 @@ COMSTACK cs_create_host(const char *type_and_host, int blocking, void **vp) return 0; #endif } + else if (strncmp (type_and_host, "unix:", 5) == 0) + { +#ifndef WIN32 + t = unix_type; + host = type_and_host + 5; +#else + return 0; +#endif + } else { t = tcpip_type;