2 // gettable_socket_option.hpp
3 // ~~~~~~~~~~~~~~~~~~~~~~~~~~
5 // Copyright (c) 2003-2017 Christopher M. Kohlhoff (chris at kohlhoff dot com)
7 // Distributed under the Boost Software License, Version 1.0. (See accompanying
8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
11 #ifndef ARCHETYPES_GETTABLE_SOCKET_OPTION_HPP
12 #define ARCHETYPES_GETTABLE_SOCKET_OPTION_HPP
16 namespace archetypes {
18 template <typename PointerType>
19 class gettable_socket_option
22 template <typename Protocol>
23 int level(const Protocol&) const
28 template <typename Protocol>
29 int name(const Protocol&) const
34 template <typename Protocol>
35 PointerType* data(const Protocol&)
40 template <typename Protocol>
41 std::size_t size(const Protocol&) const
46 template <typename Protocol>
47 void resize(const Protocol&, std::size_t)
52 } // namespace archetypes
54 #endif // ARCHETYPES_GETTABLE_SOCKET_OPTION_HPP