X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FCommunicationPolicy.cti;h=36d5a198cbc413f7755df8736021284b5402d5e2;hb=2452ac2af5863afb6cfb74e6d2c6e35fc75d1f9a;hp=f3be50d1e338828d0e88a990c65b29f4da476fce;hpb=c52cd7d87dbb525c1267aad27391b8b7365dbb57;p=senf.git diff --git a/Socket/CommunicationPolicy.cti b/Socket/CommunicationPolicy.cti index f3be50d..36d5a19 100644 --- a/Socket/CommunicationPolicy.cti +++ b/Socket/CommunicationPolicy.cti @@ -1,6 +1,6 @@ // $Id$ // -// Copyright (C) 2006 +// Copyright (C) 2006 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) // Kompetenzzentrum fuer Satelitenkommunikation (SatCom) // Stefan Bund @@ -20,7 +20,9 @@ // Free Software Foundation, Inc., // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -// Definition of inline template functions +/** \file + \brief CommunicationPolicy inline template implementation + */ //#include "CommunicationPolicy.ih" @@ -29,14 +31,37 @@ #define prefix_ inline ///////////////////////////////cti.p/////////////////////////////////////// +#ifndef DOXYGEN template -prefix_ int satcom::lib::ConnectedCommunicationPolicy:: +prefix_ void senf::ConnectedCommunicationPolicy:: +listen(ServerSocketHandle handle, unsigned backlog, + typename IfAddressingPolicyIsNot::type *) +{ + do_listen(handle, backlog); +} +#else +template +prefix_ void senf::ConnectedCommunicationPolicy:: +listen(ServerSocketHandle handle, unsigned backlog) +{} +#endif + +#ifndef DOXYGEN +template +prefix_ int senf::ConnectedCommunicationPolicy:: accept(ServerSocketHandle handle, typename ServerSocketHandle::Address & address, typename IfAddressingPolicyIsNot::type *) { return do_accept(handle,address.sockaddr_p(),address.sockaddr_len()); } +#else +template +prefix_ int senf::ConnectedCommunicationPolicy:: +accept(ServerSocketHandle handle, + typename ServerSocketHandle::Address & address) +{} +#endif ///////////////////////////////cti.e/////////////////////////////////////// #undef prefix_ @@ -44,5 +69,10 @@ accept(ServerSocketHandle handle, // Local Variables: // mode: c++ -// c-file-style: "satcom" +// fill-column: 100 +// c-file-style: "senf" +// indent-tabs-mode: nil +// ispell-local-dictionary: "american" +// compile-command: "scons -u test" +// comment-column: 40 // End: