Kea  1.5.0
isc::asiolink Namespace Reference

Classes

class  BufferOverflow
 Buffer overflow. More...
 
class  BufferTooLarge
 Buffer Too Large. More...
 
class  DummyAsioSocket
 The DummyAsioSocket class is a concrete derived class of IOAsioSocket that is not associated with any real socket. More...
 
class  DummyIOCallback
 Asynchronous I/O Completion Callback. More...
 
class  DummySocket
 The DummySocket class is a concrete derived class of IOSocket that is not associated with any real socket. More...
 
class  IntervalTimer
 The IntervalTimer class is a wrapper for the ASIO boost::asio::deadline_timer class. More...
 
class  IntervalTimerImpl
 This class holds a call back function of asynchronous operations. More...
 
class  IOAcceptor
 Base class for acceptor services in Kea. More...
 
class  IOAddress
 The IOAddress class represents an IP addresses (version agnostic) More...
 
class  IOAsioSocket
 I/O Socket with asynchronous operations. More...
 
class  IOEndpoint
 The IOEndpoint class is an abstract base class to represent a communication endpoint. More...
 
class  IOError
 An exception that is thrown if an error occurs within the IO module. More...
 
class  IOService
 The IOService class is a wrapper for the ASIO io_service class. More...
 
class  IOServiceImpl
 
class  IOSocket
 The IOSocket class is an abstract base class to represent various types of network sockets. More...
 
class  SocketNotOpen
 Socket not open. More...
 
class  SocketSetError
 Error setting socket options. More...
 
class  TCPAcceptor
 Provides a service for accepting new TCP connections. More...
 
class  TCPEndpoint
 The TCPEndpoint class is a concrete derived class of IOEndpoint that represents an endpoint of a TCP packet. More...
 
class  TCPSocket
 The TCPSocket class is a concrete derived class of IOAsioSocket that represents a TCP socket. More...
 
class  UDPEndpoint
 The UDPEndpoint class is a concrete derived class of IOEndpoint that represents an endpoint of a UDP packet. More...
 
class  UDPSocket
 The UDPSocket class is a concrete derived class of IOAsioSocket that represents a UDP socket. More...
 
class  UnixDomainSocket
 Represents unix domain socket implemented in terms of boost asio. More...
 
class  UnixDomainSocketAcceptor
 Implements acceptor service for UnixDomainSocket. More...
 
class  UnixDomainSocketEndpoint
 Endpoint for UnixDomainSocket. More...
 
class  UnixDomainSocketError
 Exception thrown upon socket error. More...
 
class  UnixDomainSocketImpl
 Implementation of the unix domain socket. More...
 

Typedefs

typedef boost::shared_ptr< isc::asiolink::IntervalTimerIntervalTimerPtr
 
typedef boost::shared_ptr< IOServiceIOServicePtr
 Defines a smart pointer to an IOService instance. More...
 

Functions

ostream & operator<< (std::ostream &os, const IOEndpoint &endpoint)
 Insert the IOEndpoint as a string into stream. More...
 
std::ostream & operator<< (std::ostream &os, const IOAddress &address)
 Insert the IOAddress as a string into stream. More...
 

Typedef Documentation

◆ IntervalTimerPtr

Definition at line 138 of file interval_timer.h.

◆ IOServicePtr

typedef boost::shared_ptr<IOService> isc::asiolink::IOServicePtr

Defines a smart pointer to an IOService instance.

Definition at line 100 of file io_service.h.

Function Documentation

◆ operator<<() [1/2]

std::ostream & isc::asiolink::operator<< ( std::ostream &  os,
const IOEndpoint endpoint 
)

Insert the IOEndpoint as a string into stream.

This method converts endpoint into a string and inserts it into the output stream os.

This method converts the address and port of the endpoint in the textual format that other Kea modules would use in logging, i.e.,

  • For IPv6 address: [<address>]:port (e.g., [2001:db8::5300]:53)
  • For IPv4 address: <address>:port (e.g., 192.0.2.53:5300)

If it's neither IPv6 nor IPv4, it converts the endpoint into text in the same format as that for IPv4, although in practice such a case is not really expected.

Parameters
osA std::ostream object on which the insertion operation is performed.
endpointA reference to an IOEndpoint object output by the operation.
Returns
A reference to the same std::ostream object referenced by parameter os after the insertion operation.

Definition at line 55 of file io_endpoint.cc.

References isc::asiolink::IOEndpoint::getAddress(), isc::asiolink::IOEndpoint::getFamily(), and isc::asiolink::IOEndpoint::getPort().

+ Here is the call graph for this function:

◆ operator<<() [2/2]

std::ostream & isc::asiolink::operator<< ( std::ostream &  os,
const IOAddress address 
)

Insert the IOAddress as a string into stream.

This method converts the address into a string and inserts it into the output stream os.

This function overloads the global operator<< to behave as described in ostream::operator<< but applied to IOAddress objects.

Parameters
osA std::ostream object on which the insertion operation is performed.
addressThe IOAddress object output by the operation.
Returns
A reference to the same std::ostream object referenced by parameter os after the insertion operation.

Definition at line 121 of file io_address.cc.

References isc::asiolink::IOAddress::toText().

+ Here is the call graph for this function: