SettableSocketOption.qbk 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. [/
  2. / Copyright (c) 2003-2019 Christopher M. Kohlhoff (chris at kohlhoff dot com)
  3. /
  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)
  6. /]
  7. [section:SettableSocketOption Settable socket option requirements]
  8. A type `X` meets the `SettableSocketOption` requirements if it satisfies the
  9. requirements listed below.
  10. In the table below, `a` denotes a (possibly const) value of type `X`, `p`
  11. denotes a (possibly const) value that meets the [link boost_asio.reference.Protocol
  12. `Protocol`] requirements, and `u` denotes an identifier.
  13. [table SettableSocketOption requirements for extensible implementations
  14. [[expression] [type] [assertion/note\npre/post-conditions]]
  15. [
  16. [`a.level(p)`]
  17. [`int`]
  18. [
  19. Returns a value suitable for passing as the /level/ argument to __POSIX__
  20. __setsockopt__ (or equivalent).
  21. ]
  22. ]
  23. [
  24. [`a.name(p)`]
  25. [`int`]
  26. [
  27. Returns a value suitable for passing as the /option_name/ argument to
  28. __POSIX__ __setsockopt__ (or equivalent).
  29. ]
  30. ]
  31. [
  32. [`a.data(p)`]
  33. [`const void*`]
  34. [
  35. Returns a pointer suitable for passing as the /option_value/ argument to
  36. __POSIX__ __setsockopt__ (or equivalent).
  37. ]
  38. ]
  39. [
  40. [`a.size(p)`]
  41. [`size_t`]
  42. [
  43. Returns a value suitable for passing as the /option_len/ argument to
  44. __POSIX__ __setsockopt__ (or equivalent), after appropriate integer
  45. conversion has been performed.
  46. ]
  47. ]
  48. ]
  49. [endsect]