X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fyaz-my-server.cpp;h=67b21acbd91cd9b6df8b164674d9aea96e81f1aa;hb=da5e82516b0b66ec65e6af4779f2fdbf29d42e5e;hp=9d6acfc43e65de69206542fbdf43e03acc7dfb17;hpb=fa96bc0dcc16f6ac3e33b5144664e51cb7d09874;p=yazpp-moved-to-github.git diff --git a/src/yaz-my-server.cpp b/src/yaz-my-server.cpp index 9d6acfc..67b21ac 100644 --- a/src/yaz-my-server.cpp +++ b/src/yaz-my-server.cpp @@ -1,10 +1,11 @@ -/* - * 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.22 2007-04-16 21:54:23 adam Exp $ */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include @@ -44,7 +45,7 @@ public: Z_PresentResponse *presentResponse); void sr_record (const char *resultSetName, int position, - int *format, + Odr_oid *format, Z_RecordComposition *comp, Z_NamePlusRecord *namePlusRecord, Z_Records *records); @@ -124,7 +125,7 @@ void MyRetrieval::sr_present (Z_PresentRequest *presentRequest, void MyRetrieval::sr_record (const char *resultSetName, int position, - int *format, + Odr_oid *format, Z_RecordComposition *comp, Z_NamePlusRecord *namePlusRecord, Z_Records *records) @@ -193,14 +194,14 @@ int main(int argc, char **argv) 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) @@ -230,7 +231,7 @@ int main(int argc, char **argv) #else my_PDU_Assoc = new PDU_Assoc(&mySocketManager); #endif - + z = new MyServer(my_PDU_Assoc); z->server(addr); if (apdu_log) @@ -247,6 +248,7 @@ int main(int argc, char **argv) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab