X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FCommunicationPolicy.cti;h=6675ed4f1e33a5e92e753343bd49ca11b4ac88e7;hb=b8ca4a544cce3e6023bb56b712a03d6362f2bb79;hp=92b410bf98bac0bbfb5dfb87a4b65aebeaa198ba;hpb=145f6a7d0f3a6aaa77b3625351c952d24cb0b8a1;p=senf.git diff --git a/Socket/CommunicationPolicy.cti b/Socket/CommunicationPolicy.cti index 92b410b..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_