2 // Copyright (c) 2020 Fraunhofer Institute for Applied Information Technology (FIT)
3 // Network Research Group (NET)
4 // Schloss Birlinghoven, 53754 Sankt Augustin, GERMANY
5 // Contact: support@wiback.org
7 // This file is part of the SENF code tree.
8 // It is licensed under the 3-clause BSD License (aka New BSD License).
9 // See LICENSE.txt in the top level directory for details or visit
10 // https://opensource.org/licenses/BSD-3-Clause
15 \brief SocketHandle non-inline template implementation
18 #include "SocketHandle.ih"
21 #include <boost/lexical_cast.hpp>
22 #include <senf/Utils/TypeInfo.hh>
25 //-/////////////////////////////////////////////////////////////////////////////////////////////////
27 //-/////////////////////////////////////////////////////////////////////////////////////////////////
28 // senf::detail::StreamableString
31 prefix_ senf::detail::StreamableString &
32 senf::detail::StreamableString::operator<<(T const & other)
36 (*this) += boost::lexical_cast<std::string>(other);
40 //-/////////////////////////////////////////////////////////////////////////////////////////////////
41 // senf::ProtocolSocketBody<SProtocol>
43 template <class SProtocol>
44 prefix_ senf::SocketProtocol const & senf::ProtocolSocketBody<SProtocol>::v_protocol()
50 template <class SProtocol>
51 prefix_ std::string senf::ProtocolSocketBody<SProtocol>::v_protocolName()
54 return senf::prettyName(typeid(SProtocol));
57 //-/////////////////////////////////////////////////////////////////////////////////////////////////
64 // c-file-style: "senf"
65 // indent-tabs-mode: nil
66 // ispell-local-dictionary: "american"
67 // compile-command: "scons -u test"