2 / Copyright (c) 2003-2016 Christopher M. Kohlhoff (chris at kohlhoff dot com)
4 / Distributed under the Boost Software License, Version 1.0. (See accompanying
5 / file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 [section:GettableSocketOption Gettable socket option requirements]
10 In the table below, `X` denotes a socket option class, `a` denotes a value of
11 `X`, `p` denotes a value that meets the [link boost_asio.reference.Protocol
12 protocol] requirements, and `u` denotes an identifier.
14 [table GettableSocketOption requirements
15 [[expression] [type] [assertion/note\npre/post-conditions]]
20 Returns a value suitable for passing as the /level/ argument to __POSIX__
21 __getsockopt__ (or equivalent).
28 Returns a value suitable for passing as the /option_name/ argument to
29 __POSIX__ __getsockopt__ (or equivalent).
34 [a pointer, convertible to `void*`]
36 Returns a pointer suitable for passing as the /option_value/ argument to
37 __POSIX__ __getsockopt__ (or equivalent).
44 Returns a value suitable for passing as the /option_len/ argument to
45 __POSIX__ __getsockopt__ (or equivalent), after appropriate
46 integer conversion has been performed.
53 post: `a.size(p) == s`.\n
54 Passed the value contained in the /option_len/ argument to __POSIX__
55 __getsockopt__ (or equivalent) after successful completion of the
56 function. Permitted to throw an exception if the socket option object `a`
57 does not support the specified size.