-/*
- * Copyright (c) 1998-2001, Index Data.
+/* This file is part of the yazpp toolkit.
+ * Copyright (C) 1998-2012 Index Data and Mike Taylor
* See the file LICENSE for details.
- *
- * $Id: yaz-my-server.cpp,v 1.23 2007-05-08 12:04:50 adam Exp $
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <stdlib.h>
#include <yaz/log.h>
#include <yaz/diagbib1.h>
char *prog = *argv;
const char *addr = "tcp:@:9999";
char *apdu_log = 0;
-
+
SocketManager mySocketManager;
-
+
PDU_Assoc *my_PDU_Assoc = 0;
-
+
MyServer *z = 0;
int ret;
-
+
while ((ret = options("a:v:T", argv, argc, &arg)) != -2)
{
switch (ret)
#else
my_PDU_Assoc = new PDU_Assoc(&mySocketManager);
#endif
-
+
z = new MyServer(my_PDU_Assoc);
z->server(addr);
if (apdu_log)
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab