![]() |
Kea 3.1.1
|
The ICMPEndpoint
class is a concrete derived class of IOEndpoint
that represents an endpoint of a ICMP packet.
More...
#include <icmp_endpoint.h>
Constructors and Destructor. | |
ICMPEndpoint () | |
Default Constructor. | |
ICMPEndpoint (const asiolink::IOAddress &address) | |
Constructor from an address. | |
ICMPEndpoint (boost::asio::ip::icmp::endpoint &asio_endpoint) | |
Copy Constructor from an ASIO ICMP endpoint. | |
ICMPEndpoint (const boost::asio::ip::icmp::endpoint &asio_endpoint) | |
Constructor from a const ASIO ICMP endpoint. | |
virtual | ~ICMPEndpoint () |
The destructor. | |
virtual asiolink::IOAddress | getAddress () const |
Fetches the IP address of the endpoint. | |
virtual const struct sockaddr & | getSockAddr () const |
Fetches the IP address of the endpoint in native form. | |
virtual uint16_t | getPort () const |
Fetches the IP port number of the endpoint. | |
virtual short | getProtocol () const |
Fetches the network protocol of the endpoint. | |
virtual short | getFamily () const |
Fetches the network protocol family of the endpoint. | |
const boost::asio::ip::icmp::endpoint & | getASIOEndpoint () const |
Fetches the underlying ASIO endpoint implementation. | |
boost::asio::ip::icmp::endpoint & | getASIOEndpoint () |
Fetches the underlying ASIO endpoint implementation. | |
Additional Inherited Members | |
virtual | ~IOEndpoint () |
The destructor. | |
bool | operator== (const IOEndpoint &other) const |
bool | operator!= (const IOEndpoint &other) const |
static const IOEndpoint * | create (const int protocol, const IOAddress &address, const unsigned short port) |
A polymorphic factory of endpoint from address and port. | |
IOEndpoint () | |
The default constructor. | |
The ICMPEndpoint
class is a concrete derived class of IOEndpoint
that represents an endpoint of a ICMP packet.
Other notes about TCPEndpoint
applies to this class, too.
Definition at line 19 of file icmp_endpoint.h.
|
inline |
Default Constructor.
Creates an internal endpoint. This is expected to be set by some external call.
Definition at line 30 of file icmp_endpoint.h.
|
inlineexplicit |
Constructor from an address.
address | The IP address of the endpoint. |
Definition at line 38 of file icmp_endpoint.h.
|
inlineexplicit |
Copy Constructor from an ASIO ICMP endpoint.
This constructor is designed to be an efficient wrapper for the corresponding ASIO class, icmp::endpoint
.
asio_endpoint | The ASIO representation of the ICMP endpoint. |
Definition at line 50 of file icmp_endpoint.h.
|
inlineexplicit |
Constructor from a const ASIO ICMP endpoint.
This constructor is designed to be an efficient wrapper for the corresponding ASIO class, icmp::endpoint
.
asio_endpoint | The ASIO representation of the TCP endpoint. |
Definition at line 60 of file icmp_endpoint.h.
|
inlinevirtual |
The destructor.
Definition at line 66 of file icmp_endpoint.h.
|
inlinevirtual |
Fetches the IP address of the endpoint.
Implements isc::asiolink::IOEndpoint.
Definition at line 72 of file icmp_endpoint.h.
|
inline |
Fetches the underlying ASIO endpoint implementation.
This is not part of the exposed IOEndpoint API but allows direct access to the ASIO implementation of the endpoint
Definition at line 120 of file icmp_endpoint.h.
|
inline |
Fetches the underlying ASIO endpoint implementation.
This is not part of the exposed IOEndpoint API but allows direct access to the ASIO implementation of the endpoint
Definition at line 110 of file icmp_endpoint.h.
Referenced by isc::ping_check::ICMPSocket< C >::asyncReceive(), and isc::ping_check::ICMPSocket< C >::asyncSend().
|
inlinevirtual |
Fetches the network protocol family of the endpoint.
Implements isc::asiolink::IOEndpoint.
Definition at line 100 of file icmp_endpoint.h.
|
inlinevirtual |
Fetches the IP port number of the endpoint.
Implements isc::asiolink::IOEndpoint.
Definition at line 86 of file icmp_endpoint.h.
|
inlinevirtual |
Fetches the network protocol of the endpoint.
Implements isc::asiolink::IOEndpoint.
Definition at line 93 of file icmp_endpoint.h.
|
inlinevirtual |
Fetches the IP address of the endpoint in native form.
Implements isc::asiolink::IOEndpoint.
Definition at line 79 of file icmp_endpoint.h.