X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FReadWritePolicy.cti;h=edb7915c94deafbdfe5b7a5e21cf565b481681ca;hb=6927c87144ca23845065e3c23e37c75f5f059cf3;hp=f4f7f84f20d0419e216e0d9c8f385674e514e249;hpb=c52cd7d87dbb525c1267aad27391b8b7365dbb57;p=senf.git diff --git a/Socket/ReadWritePolicy.cti b/Socket/ReadWritePolicy.cti index f4f7f84..edb7915 100644 --- a/Socket/ReadWritePolicy.cti +++ b/Socket/ReadWritePolicy.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 ReadPolicy and WritePolicy inline template implementation + */ //#include "ReadWritePolicy.ih" @@ -29,32 +31,56 @@ #define prefix_ inline ///////////////////////////////cti.p/////////////////////////////////////// -template -prefix_ unsigned satcom::lib::ReadablePolicy:: -readfrom(ClientSocketHandle handle, char * buffer, unsigned size, - typename Policy::AddressingPolicy::Address & address, - typename IfCommunicationPolicyIs::type *) +#ifndef DOXYGEN +template +prefix_ unsigned senf::ReadablePolicy:: +readfrom(ClientSocketHandle handle, char * buffer, unsigned size, + typename SPolicy::AddressingPolicy::Address & address, + typename IfCommunicationPolicyIs::type *) { - return do_rcvfrom(handle, buffer, size, address.sockaddr_p(), address.sockaddr_len()); + return do_readfrom(handle, buffer, size, address.sockaddr_p(), address.socklen_p()); } +#else +template +prefix_ unsigned senf::ReadablePolicy:: +readfrom(ClientSocketHandle handle, char * buffer, unsigned size, + typename Policy::AddressingPolicy::Address & address) +{} +#endif -template -prefix_ unsigned satcom::lib::WriteablePolicy:: -write(ClientSocketHandle handle, char const * buffer, unsigned size, - typename IfCommunicationPolicyIs::type *) +#ifndef DOXYGEN +template +prefix_ unsigned senf::WriteablePolicy:: +write(ClientSocketHandle handle, char const * buffer, unsigned size, + typename IfCommunicationPolicyIs::type *) { return do_write(handle,buffer,size); } +#else +template +prefix_ unsigned senf::WriteablePolicy:: +write(ClientSocketHandle handle, char const * buffer, unsigned size) +{} +#endif -template -prefix_ unsigned satcom::lib::WriteablePolicy:: -writeto(ClientSocketHandle handle, - typename boost::call_traits::param_type addr, +#ifndef DOXYGEN +template +prefix_ unsigned senf::WriteablePolicy:: +writeto(ClientSocketHandle handle, + typename boost::call_traits::param_type addr, char const * buffer, unsigned size, - typename IfCommunicationPolicyIs::type *) + typename IfCommunicationPolicyIs::type *) { - return do_writeto(handle, buffer, size, addr.sockaddr_p(), addr.sockaddr_len()); + return do_writeto(handle, buffer, size, addr.sockaddr_p(), addr.socklen()); } +#else +template +prefix_ unsigned senf::WriteablePolicy:: +writeto(ClientSocketHandle handle, + typename Policy::AddressingPolicy::Address const & addr, + char const * buffer, unsigned size) +{} +#endif ///////////////////////////////cti.e/////////////////////////////////////// #undef prefix_ @@ -62,5 +88,10 @@ writeto(ClientSocketHandle 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: