* Sebastian Hammer, Adam Dickmeiss
*
* $Log: statserv.c,v $
- * Revision 1.5 1995-03-15 08:37:45 quinn
+ * Revision 1.7 1995-03-16 13:29:04 quinn
+ * Partitioned server.
+ *
+ * Revision 1.6 1995/03/15 15:18:52 quinn
+ * Little changes to better support nonblocking I/O
+ * Added backend.h
+ *
+ * Revision 1.5 1995/03/15 08:37:45 quinn
* Now we're pretty much set for nonblocking I/O.
*
* Revision 1.4 1995/03/14 16:59:48 quinn
#include <tcpip.h>
#include <xmosi.h>
+#include <unistd.h>
+#include <fcntl.h>
+
static char *me = "";
#define DEFAULT_LISTENER "tcp:localhost:9999"
fprintf(stderr, "You must specify either 'osi:' or 'tcp:'.\n");
exit(1);
}
- if (!(l = cs_create(type, 1)))
+ if (!(l = cs_create(type, 0)))
{
fprintf(stderr, "Failed to create listener\n");
exit(1);
iochan_setdata(lst, l);
}
-int main(int argc, char **argv)
+int statserv_main(int argc, char **argv)
{
int ret, listeners = 0;
char *arg;