1[/
2 / Copyright (c) 2003-2021 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
8[section:InternetProtocol Internet protocol requirements]
9
10A type `X` meets the `InternetProtocol` requirements if it satisfies the
11requirements of [link boost_asio.reference.AcceptableProtocol `AcceptableProtocol`],
12as well as the additional requirements listed below.
13
14In the table below, `a` denotes a (possibly const) value of type `X`, and `b`
15denotes a (possibly const) value of type `X`.
16
17[table InternetProtocol requirements
18  [[expression] [return type] [assertion/note[br]pre/post-conditions]]
19  [
20    [`X::resolver`]
21    [`ip::basic_resolver<X>`]
22    [The type of a resolver for the protocol.]
23  ]
24  [
25    [`X::v4()`]
26    [`X`]
27    [Returns an object representing the IP version 4 protocol.]
28  ]
29  [
30    [`X::v6()`]
31    [`X`]
32    [Returns an object representing the IP version 6 protocol.]
33  ]
34  [
35    [`a == b`]
36    [convertible to `bool`]
37    [Returns `true` if `a` and `b` represent the same IP protocol version,
38     otherwise `false`.]
39  ]
40  [
41    [`a != b`]
42    [convertible to `bool`]
43    [Returns `!(a == b)`.]
44  ]
45]
46
47[endsect]
48