X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FServerSocketHandle.cti;h=e0e133f39f0aaf3a3bc5bea402f867735f2a31fc;hb=6f50bf49e282c0528f51faa0a245bbfa2b867399;hp=715a9a6addfa6077f57289da5469602bd2a9ef0f;hpb=145f6a7d0f3a6aaa77b3625351c952d24cb0b8a1;p=senf.git diff --git a/Socket/ServerSocketHandle.cti b/Socket/ServerSocketHandle.cti index 715a9a6..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 @@ -48,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 @@ -95,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 @@ -106,7 +106,7 @@ senf::ServerSocketHandle::acceptfrom() { Address address; - ClientSocketHandle handle = accept(address); + ClientSocketHandle handle = acceptfrom(address); return std::make_pair(handle,address); }