X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FServerSocketHandle.cti;h=e0e133f39f0aaf3a3bc5bea402f867735f2a31fc;hb=6f50bf49e282c0528f51faa0a245bbfa2b867399;hp=37bbe4486c034c0aed9ab78cb1d308143194891d;hpb=ac6a813d9d99f7add4e13aff7a4bcd314d5604a6;p=senf.git diff --git a/Socket/ServerSocketHandle.cti b/Socket/ServerSocketHandle.cti index 37bbe44..e0e133f 100644 --- a/Socket/ServerSocketHandle.cti +++ b/Socket/ServerSocketHandle.cti @@ -1,9 +1,9 @@ // $Id$ // -// Copyright (C) 2006 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) -// Stefan Bund +// Copyright (C) 2006 +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY +// Stefan Bund // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -20,6 +20,10 @@ // Free Software Foundation, Inc., // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +/** \file + \brief ServerSocketHandle inline template implementation + */ + // Definition of inline template functions //#include "ServerSocketHandle.ih" @@ -30,6 +34,10 @@ #define prefix_ inline ///////////////////////////////cti.p/////////////////////////////////////// +template +prefix_ senf::ServerSocketHandle::ServerSocketHandle() +{} + template template prefix_ senf::ServerSocketHandle:: @@ -40,8 +48,8 @@ ServerSocketHandle(ServerSocketHandle other, template prefix_ senf::ServerSocketHandle:: -ServerSocketHandle(std::auto_ptr protocol) - : SocketHandle(protocol,true) +ServerSocketHandle(std::auto_ptr body) + : SocketHandle(body) {} template @@ -87,8 +95,8 @@ template prefix_ typename senf::ServerSocketHandle::ClientSocketHandle senf::ServerSocketHandle::accept() { - Address address; - return acceptfrom(address); + return ClientSocketHandle(this->body().clone( + Policy::CommunicationPolicy::accept(*this), false)); } template @@ -98,7 +106,7 @@ senf::ServerSocketHandle::acceptfrom() { Address address; - ClientSocketHandle handle = accept(address); + ClientSocketHandle handle = acceptfrom(address); return std::make_pair(handle,address); } @@ -106,7 +114,7 @@ template prefix_ typename senf::ServerSocketHandle::ClientSocketHandle senf::ServerSocketHandle::acceptfrom(Address & addr) { - return ClientSocketHandle(this->protocol().clone(), + return ClientSocketHandle(this->protocol().clone(), Policy::CommunicationPolicy::accept(*this,addr)); } @@ -156,5 +164,10 @@ prefix_ std::string senf::ServerSocketHandle::dumpState(unsigned lod) // Local Variables: // mode: c++ +// fill-column: 100 // c-file-style: "senf" +// indent-tabs-mode: nil +// ispell-local-dictionary: "american" +// compile-command: "scons -u test" +// comment-column: 40 // End: