X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=src%2Fsocket_server.hxx;h=f3dd1c599e334ce49601f98b43fc0350d92e9958;hp=4c928c5f020026d392d60ce64ae086b99830ad22;hb=19facd8558fe2e32ce843860b40631ebe03ff3cf;hpb=45a2ebc9695c4d7be6548b7e0f800d117ae56a0b diff --git a/src/socket_server.hxx b/src/socket_server.hxx index 4c928c5..f3dd1c5 100644 --- a/src/socket_server.hxx +++ b/src/socket_server.hxx @@ -1,21 +1,24 @@ -/*************************************************************************** - * Copyright (C) 2006 by Gerd v. Egidy * - * gve@intra2net.com * - * * - * This library is free software; you can redistribute it and/or modify * - * it under the terms of the GNU Lesser General Public License version * - * 2.1 as published by the Free Software Foundation. * - * * - * This library is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU Lesser General Public License for more details. * - * * - * You should have received a copy of the GNU Lesser General Public * - * License along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * - ***************************************************************************/ +/* +Copyright (C) 2006 by Intra2net AG - Gerd v. Egidy + +The software in this package is distributed under the GNU General +Public License version 2 (with a special exception described below). + +A copy of GNU General Public License (GPL) is included in this distribution, +in the file COPYING.GPL. + +As a special exception, if other files instantiate templates or use macros +or inline functions from this file, or you compile this file and link it +with other works to produce a work based on this file, this file +does not by itself cause the resulting work to be covered +by the GNU General Public License. + +However the source code for this file must still be made available +in accordance with section (3) of the GNU General Public License. + +This exception does not invalidate any other reasons why a work based +on this file might be covered by the GNU General Public License. +*/ #ifndef __LIBT2N_SOCKET_SERVER #define __LIBT2N_SOCKET_SERVER @@ -79,6 +82,8 @@ class socket_server_connection : public socket_handler, public server_connection : server_connection(_timeout), socket_handler(_sock,_stype) { } + ~socket_server_connection(); + std::ostream* get_logstream(log_level_values level) { return server_connection::get_logstream(level); } @@ -89,7 +94,7 @@ class socket_server_connection : public socket_handler, public server_connection bool fill_buffer(long long usec_timeout=-1,long long* usec_timeout_remaining=NULL) { return socket_handler::fill_buffer(buffer,usec_timeout,usec_timeout_remaining); } - void close(); + virtual void close(); }; }