projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix refernce to yaz(7)
[yaz-moved-to-github.git]
/
comstack
/
comstack.c
diff --git
a/comstack/comstack.c
b/comstack/comstack.c
index
6a4cc05
..
121d143
100644
(file)
--- a/
comstack/comstack.c
+++ b/
comstack/comstack.c
@@
-3,7
+3,13
@@
* See the file LICENSE for details.
*
* $Log: comstack.c,v $
* See the file LICENSE for details.
*
* $Log: comstack.c,v $
- * Revision 1.8 2001-07-19 19:49:02 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
* Added include of string.h.
*
* Revision 1.7 2001/03/21 12:43:36 adam
* Added include of string.h.
*
* Revision 1.7 2001/03/21 12:43:36 adam
@@
-39,6
+45,7
@@
#include <string.h>
#include <yaz/comstack.h>
#include <yaz/tcpip.h>
#include <string.h>
#include <yaz/comstack.h>
#include <yaz/tcpip.h>
+#include <yaz/unix.h>
static const char *cs_errlist[] =
{
static const char *cs_errlist[] =
{
@@
-83,6
+90,15
@@
COMSTACK cs_create_host(const char *type_and_host, int blocking, void **vp)
return 0;
#endif
}
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;
else
{
t = tcpip_type;
@@
-100,3
+116,8
@@
COMSTACK cs_create_host(const char *type_and_host, int blocking, void **vp)
}
return cs;
}
}
return cs;
}
+
+int cs_look (COMSTACK cs)
+{
+ return cs->event;
+}