Represents a network endpoint, serving as a base class for both clients and servers.
More...
#include <endpoint.hxx>
|
| EndPoint (const Connection::Protocol &protocol, std::shared_ptr< Connection::Handler > handler, std::shared_ptr< Logger > logger) noexcept |
| Constructs an EndPoint with the specified protocol, handler, and logger.
|
|
| EndPoint (const EndPoint &other)=delete |
| Deleted copy constructor to prevent copying.
|
|
| EndPoint (EndPoint &&other) noexcept=default |
| Defaulted move constructor.
|
|
virtual | ~EndPoint () noexcept |
| Virtual destructor for proper cleanup in derived classes.
|
|
EndPoint & | operator= (const EndPoint &other)=delete |
| Deleted copy assignment operator to prevent copying.
|
|
EndPoint & | operator= (EndPoint &&other) noexcept=default |
| Defaulted move assignment operator.
|
|
const Connection::Protocol & | Protocol () const noexcept |
| Retrieves the protocol used by the endpoint.
|
|
|
Connection::Protocol | m_protocol |
| The protocol used by the endpoint (e.g., IPv4, IPv6).
|
|
std::shared_ptr< Connection::Handler > | m_handler |
| Shared pointer to the connection handler.
|
|
std::shared_ptr< Logger > | m_logger |
| Shared pointer to the logger instance.
|
|
std::atomic< Connection::Status > | m_status |
| The current connection status of the endpoint.
|
|
Socket::Socket * | m_socket |
| Unique pointer to the socket instance.
|
|
Represents a network endpoint, serving as a base class for both clients and servers.
◆ EndPoint()
StormByte::Network::EndPoint::EndPoint |
( |
const Connection::Protocol & |
protocol, |
|
|
std::shared_ptr< Connection::Handler > |
handler, |
|
|
std::shared_ptr< Logger > |
logger |
|
) |
| |
|
noexcept |
Constructs an EndPoint with the specified protocol, handler, and logger.
- Parameters
-
protocol | The protocol to use (e.g., IPv4, IPv6). |
handler | A shared pointer to the connection handler. |
logger | A shared pointer to the logger instance. |
◆ Protocol()
const Connection::Protocol & StormByte::Network::EndPoint::Protocol |
( |
| ) |
const |
|
noexcept |
Retrieves the protocol used by the endpoint.
- Returns
- A constant reference to the protocol.
The documentation for this class was generated from the following file:
- /home/runner/work/StormByte-Network/StormByte-Network/lib/public/StormByte/network/endpoint.hxx