# Copyright (C) 1994, Index Data I/S
# All rights reserved.
# Sebastian Hammer, Adam Dickmeiss
-# $Id: Makefile,v 1.3 1995-03-14 11:30:14 quinn Exp $
+# $Id: Makefile,v 1.4 1995-03-14 16:59:48 quinn Exp $
SHELL=/bin/sh
INCLUDE=-I../include -I. -I../asn -I../odr -I../yazlib -I../../egate/include\
#CFLAGS=-Wall -pedantic -g
DEFS=$(INCLUDE)
LIB=$(LIBDIR)/libserver.a
-LIBS=-lserver -lasn -lodr -lcomstack ../../alex/lib/util.a
+LIBS=$(LIBDIR)/libserver.a $(LIBDIR)/libasn.a $(LIBDIR)/libodr.a $(LIBDIR)/libcomstack.a ../../alex/lib/util.a
PO = eventl.o
CPP=cc -E
PROG=statserv
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: eventl.c,v $
- * Revision 1.3 1995-03-14 11:30:14 quinn
+ * Revision 1.4 1995-03-14 16:59:48 quinn
+ * Bug-fixes
+ *
+ * Revision 1.3 1995/03/14 11:30:14 quinn
* Works better now.
*
* Revision 1.2 1995/03/14 10:27:59 quinn
new->flags = flags;
new->fun = cb;
new->next = iochans;
+ new->force_event = 0;
iochans = new;
return new;
}
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: statserv.c,v $
- * Revision 1.3 1995-03-14 11:30:15 quinn
+ * Revision 1.4 1995-03-14 16:59:48 quinn
+ * Bug-fixes
+ *
+ * Revision 1.3 1995/03/14 11:30:15 quinn
* Works better now.
*
* Revision 1.2 1995/03/14 10:28:03 quinn
static char *me = "";
+#define DEFAULT_LISTENER "tcp:localhost:9999"
+
/*
* handle incoming connect requests.
*/
void *ap;
IOCHAN lst;
+ fprintf(stderr, "Adding listener on %s\n", where);
if (!where || sscanf(where, "%[^:]:%s", mode, addr) != 2)
{
fprintf(stderr, "%s: Address format: ('tcp'|'osi')':'<address>.\n",
int ret, listeners = 0;
char *arg;
+ me = argv[0];
while ((ret = options("l:", argv, argc, &arg)) != -2)
switch (ret)
{
exit(1);
}
if (!listeners)
- {
- fprintf(stderr, "%s: Must specify at least one listener.\n", me);
- exit(1);
- }
+ add_listener(DEFAULT_LISTENER);
return event_loop();
}