![]() |
Nexus Engine
v0.0.1
|
Public Member Functions | |
| TCPClient ()=default | |
| TCPClient (const TCPClient &)=delete | |
| TCPClient & | operator= (const TCPClient &)=delete |
| TCPClient (TCPClient &&other) noexcept=default | |
| TCPClient & | operator= (TCPClient &&other) noexcept=default |
| bool | Connect (const NetworkAddress &address) |
| TCPClient (Socket &&acceptedSocket) | |
| void | Disconnect () noexcept |
| bool | IsConnected () const noexcept |
| bool | IsConnecting () const noexcept |
| bool | Send (std::vector< byte > &&framedData) |
| bool | Send (std::span< const byte > framedData) |
| std::vector< std::vector< byte > > | Poll () |
Static Public Attributes | |
| static constexpr usize | MAX_QUEUED_SEND_BYTES = 4u << 20 |
|
default |
|
delete |
|
defaultnoexcept |
|
explicit |
| bool Nexus::Network::TCPClient::Connect | ( | const NetworkAddress & | address | ) |
|
noexcept |
|
nodiscardnoexcept |
|
nodiscardnoexcept |
| std::vector< std::vector< byte > > Nexus::Network::TCPClient::Poll | ( | ) |
| bool Nexus::Network::TCPClient::Send | ( | std::span< const byte > | framedData | ) |
| bool Nexus::Network::TCPClient::Send | ( | std::vector< byte > && | framedData | ) |
|
staticconstexpr |