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 SocketProtocol and ConcreteSocketProtocol inline non-template implementation
18 //#include "SocketProtocol.ih"
21 #include <senf/Utils/senfassert.hh>
23 #define prefix_ inline
24 //-/////////////////////////////////////////////////////////////////////////////////////////////////
26 //-/////////////////////////////////////////////////////////////////////////////////////////////////
27 // senf::SocketProtocol
29 prefix_ senf::FileHandle senf::SocketProtocol::fh()
32 return body().handle();
35 prefix_ int senf::SocketProtocol::fd()
41 prefix_ void senf::SocketProtocol::fd(int fd)
44 SENF_ASSERT(! body().valid(), "Replacing filedescriptor of open FileHandle");
48 prefix_ senf::SocketProtocol::SocketProtocol()
51 prefix_ senf::SocketProtocol::~SocketProtocol()
54 //-/////////////////////////////////////////////////////////////////////////////////////////////////
61 // c-file-style: "senf"
62 // indent-tabs-mode: nil
63 // ispell-local-dictionary: "american"
64 // compile-command: "scons -u test"