ConnectCondition.qbk 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  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:ConnectCondition Connect condition requirements]
  8. A type `X` meets the `ConnectCondition` requirements if it satisfies the
  9. requirements of `Destructible` (C++Std [destructible]) and
  10. `CopyConstructible` (C++Std [copyconstructible]), as well as the additional
  11. requirements listed below.
  12. In the table below, `x` denotes a value of type `X`, `ec` denotes a (possibly
  13. const) value of type `error_code`, and `ep` denotes a (possibly const) value of
  14. some type satisfying the [link boost_asio.reference.Endpoint endpoint] requirements.
  15. [table ConnectCondition requirements
  16. [[expression] [return type] [assertion/note\npre/post-condition]]
  17. [
  18. [`x(ec, ep)`]
  19. [`bool`]
  20. [
  21. Returns `true` to indicate that the `connect` or `async_connect`
  22. algorithm should attempt a connection to the endpoint `ep`. Otherwise,
  23. returns `false` to indicate that the algorithm should not attempt
  24. connection to the endpoint `ep`, and should instead skip to the next
  25. endpoint in the sequence.
  26. ]
  27. ]
  28. ]
  29. [endsect]