|
| Client (const Connection::Protocol &protocol, std::shared_ptr< Connection::Handler > handler, std::shared_ptr< Logger > logger, const PacketInstanceFunction &pf) noexcept |
| The constructor of the Client class.
|
|
| Client (const Client &other)=delete |
| The copy constructor of the Client class.
|
|
| Client (Client &&other) noexcept=default |
| The move constructor of the Client class.
|
|
virtual | ~Client () noexcept override |
| The destructor of the Client class.
|
|
Client & | operator= (const Client &other)=delete |
| The assignment operator of the Client class.
|
|
Client & | operator= (Client &&other) noexcept=default |
| The assignment operator of the Client class.
|
|
StormByte::Expected< void, ConnectionError > | Connect (const std::string &hostname, const unsigned short &port) noexcept |
| The function to connect a server.
|
|
void | Disconnect () noexcept |
| The function to disconnect the server.
|
|
ExpectedPacket | Send (const Packet &packet) noexcept |
| The function to send data to the server.
|
|
| 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.
|
|
The class representing a client.