Class NetioSender::Connection

Nested Relationships

This class is a nested type of Class NetioSender.

Class Documentation

class Connection

Wrapper struct around a connection.

Public Functions

explicit Connection(NetioSender *sender, EndPointAddress ep, bool thread_safe, BaseEventLoop *evloop)

Construct a new Connection object.

Parameters:
  • sender – Pointer to the NetioSender object

  • ep – Remote endpoint to connect to

  • thread_safe – Whether the connection is supposed to be thread safe

  • evloop – Pointer to the event loop

Connection(const Connection&) = delete
Connection(Connection&&) = delete
Connection() = delete
Connection &operator=(const Connection&) = delete
Connection &operator=(Connection&&) = delete
~Connection() = default
inline const EndPointAddress &get_endpoint() const

Get the endpoint of the connection.

Returns:

The endpoint of the connection