X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Fyaz-z-assoc.cpp;h=e389184c6a327d70dafd9196754d4306e3c6790c;hb=d1010e2fab0026b538230f67293bd5d4724c0913;hp=b0eae8ae6ffef98983390e58c5a18e52644be9a0;hpb=d588f1d530f53c4d38a4a5f954545b06b2751968;p=yazpp-moved-to-github.git diff --git a/src/yaz-z-assoc.cpp b/src/yaz-z-assoc.cpp index b0eae8a..e389184 100644 --- a/src/yaz-z-assoc.cpp +++ b/src/yaz-z-assoc.cpp @@ -1,10 +1,11 @@ -/* - * Copyright (c) 1998-2007, Index Data. +/* This file is part of the yazpp toolkit. + * Copyright (C) 1998-2011 Index Data and Mike Taylor * See the file LICENSE for details. - * - * $Id: yaz-z-assoc.cpp,v 1.43 2007-05-08 12:04:50 adam Exp $ */ +#if HAVE_CONFIG_H +#include +#endif #include #include @@ -95,7 +96,7 @@ void Z_Assoc::recv_PDU(const char *buf, int len) } else { - close(); + m_PDU_Observable->shutdown(); failNotify(); } } @@ -292,7 +293,7 @@ int Z_Assoc::client(const char *addr) void Z_Assoc::close() { - m_PDU_Observable->close (); + m_PDU_Observable->close_session(); } int Z_Assoc::server(const char *addr) @@ -422,6 +423,7 @@ Z_ReferenceId* Z_Assoc::getRefID(char* str) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab