X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FServerSocketHandle.cti;h=e0e133f39f0aaf3a3bc5bea402f867735f2a31fc;hb=6f50bf49e282c0528f51faa0a245bbfa2b867399;hp=03764f369978d6ef667b904c91389352084c278d;hpb=85ab07d100a382467a42e19d741d403a7a96c951;p=senf.git diff --git a/Socket/ServerSocketHandle.cti b/Socket/ServerSocketHandle.cti index 03764f3..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 +// 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 @@ -34,6 +34,10 @@ #define prefix_ inline ///////////////////////////////cti.p/////////////////////////////////////// +template +prefix_ senf::ServerSocketHandle::ServerSocketHandle() +{} + template template prefix_ senf::ServerSocketHandle:: @@ -44,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 @@ -91,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 @@ -102,7 +106,7 @@ senf::ServerSocketHandle::acceptfrom() { Address address; - ClientSocketHandle handle = accept(address); + ClientSocketHandle handle = acceptfrom(address); return std::make_pair(handle,address); } @@ -164,4 +168,6 @@ prefix_ std::string senf::ServerSocketHandle::dumpState(unsigned lod) // c-file-style: "senf" // indent-tabs-mode: nil // ispell-local-dictionary: "american" +// compile-command: "scons -u test" +// comment-column: 40 // End: