X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FCommunicationPolicy.cti;h=6675ed4f1e33a5e92e753343bd49ca11b4ac88e7;hb=bd9f9d3fd6fbcff0112a7bf48ab9284da9576b11;hp=233dc3bfbb811229d8349a20022ac85179782675;hpb=8421c3a8da7485cb8781045494ecaab3ed84f403;p=senf.git diff --git a/Socket/CommunicationPolicy.cti b/Socket/CommunicationPolicy.cti index 233dc3b..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 +// 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 @@ -31,22 +31,37 @@ #define prefix_ inline ///////////////////////////////cti.p/////////////////////////////////////// -template +#ifndef DOXYGEN +template prefix_ void senf::ConnectedCommunicationPolicy:: -listen(ServerSocketHandle handle, unsigned backlog, - typename IfAddressingPolicyIsNot::type *) +listen(ServerSocketHandle handle, unsigned backlog, + typename IfAddressingPolicyIsNot::type *) { do_listen(handle, backlog); } +#else +template +prefix_ void senf::ConnectedCommunicationPolicy:: +listen(ServerSocketHandle handle, unsigned backlog) +{} +#endif -template +#ifndef DOXYGEN +template prefix_ int senf::ConnectedCommunicationPolicy:: -accept(ServerSocketHandle handle, - typename ServerSocketHandle::Address & address, - typename IfAddressingPolicyIsNot::type *) +accept(ServerSocketHandle handle, + typename ServerSocketHandle::Address & address, + typename IfAddressingPolicyIsNot::type *) { - return do_accept(handle,address.sockaddr_p(),address.sockaddr_len()); + 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_ @@ -58,4 +73,6 @@ accept(ServerSocketHandle handle, // c-file-style: "senf" // indent-tabs-mode: nil // ispell-local-dictionary: "american" +// compile-command: "scons -u test" +// comment-column: 40 // End: