X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FCommunicationPolicy.cti;h=6675ed4f1e33a5e92e753343bd49ca11b4ac88e7;hb=81f84badf27b66dbadec9890646ca1193e998505;hp=f3be50d1e338828d0e88a990c65b29f4da476fce;hpb=c52cd7d87dbb525c1267aad27391b8b7365dbb57;p=senf.git diff --git a/Socket/CommunicationPolicy.cti b/Socket/CommunicationPolicy.cti index f3be50d..6675ed4 100644 --- a/Socket/CommunicationPolicy.cti +++ b/Socket/CommunicationPolicy.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,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/////////////////////////////////////// -template -prefix_ int satcom::lib::ConnectedCommunicationPolicy:: -accept(ServerSocketHandle handle, - typename ServerSocketHandle::Address & address, - typename IfAddressingPolicyIsNot::type *) +#ifndef DOXYGEN +template +prefix_ void senf::ConnectedCommunicationPolicy:: +listen(ServerSocketHandle handle, unsigned backlog, + typename IfAddressingPolicyIsNot::type *) { - return do_accept(handle,address.sockaddr_p(),address.sockaddr_len()); + 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.socklen()); +} +#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: