Nexus Engine  v0.0.1
Loading...
Searching...
No Matches
Nexus::Network::TCPServer Class Referenceexport

Public Member Functions

bool Listen (uint16 port)
void Stop ()
std::vector< ClientIdAcceptPending ()
std::vector< std::pair< ClientId, std::vector< byte > > > PollAll ()
bool SendTo (ClientId id, std::span< const byte > framedData)
bool SendTo (ClientId id, std::vector< byte > &&framedData)
void Broadcast (std::span< const byte > framedData)
usize ClientCount () const noexcept

Member Function Documentation

◆ AcceptPending()

std::vector< ClientId > Nexus::Network::TCPServer::AcceptPending ( )

◆ Broadcast()

void Nexus::Network::TCPServer::Broadcast ( std::span< const byte > framedData)

◆ ClientCount()

usize Nexus::Network::TCPServer::ClientCount ( ) const
nodiscardnoexcept

◆ Listen()

bool Nexus::Network::TCPServer::Listen ( uint16 port)

◆ PollAll()

std::vector< std::pair< ClientId, std::vector< byte > > > Nexus::Network::TCPServer::PollAll ( )

◆ SendTo() [1/2]

bool Nexus::Network::TCPServer::SendTo ( ClientId id,
std::span< const byte > framedData )

◆ SendTo() [2/2]

bool Nexus::Network::TCPServer::SendTo ( ClientId id,
std::vector< byte > && framedData )

◆ Stop()

void Nexus::Network::TCPServer::Stop ( )

The documentation for this class was generated from the following files: