 |
Kea
1.5.0
|
Go to the documentation of this file.
8 #define IO_ENDPOINT_H 1
24 #include <sys/socket.h>
153 const unsigned short port);
179 #endif // IO_ENDPOINT_H
virtual uint16_t getPort() const =0
Returns the port of the endpoint.
virtual short getProtocol() const =0
Returns the protocol number of the endpoint (TCP, UDP...)
virtual ~IOEndpoint()
The destructor.
The IOAddress class represents an IP addresses (version agnostic)
std::ostream & operator<<(std::ostream &os, const IOAddress &address)
Insert the IOAddress as a string into stream.
virtual const struct sockaddr & getSockAddr() const =0
Returns the address of the endpoint in the form of sockaddr structure.
virtual short getFamily() const =0
Returns the address family of the endpoint.
The IOEndpoint class is an abstract base class to represent a communication endpoint.
Defines the logger used by the top-level component of kea-dhcp-ddns.
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.
A wrapper interface for the ASIO library.
IOEndpoint()
The default constructor.
bool operator!=(const IOEndpoint &other) const
virtual IOAddress getAddress() const =0
Returns the address of the endpoint.