#include <connection.h>
Public Member Functions | |
virtual | ~IConnection ()=default |
virtual void | Serve (Address bind_addr)=0 |
virtual void | Connect (Address address)=0 |
virtual bool | Connected ()=0 |
virtual void | Disconnect ()=0 |
virtual void | DisconnectPeer (session_t peer_id)=0 |
virtual bool | ReceiveTimeoutMs (NetworkPacket *pkt, u32 timeout_ms)=0 |
bool | TryReceive (NetworkPacket *pkt) |
virtual void | Send (session_t peer_id, u8 channelnum, NetworkPacket *pkt, bool reliable)=0 |
virtual session_t | GetPeerID () const =0 |
virtual Address | GetPeerAddress (session_t peer_id)=0 |
virtual float | getPeerStat (session_t peer_id, rtt_stat_type type)=0 |
virtual float | getLocalStat (rate_stat_type type)=0 |
|
virtualdefault |
|
pure virtual |
Implemented in con::Connection.
Referenced by Client::connect().
|
pure virtual |
Implemented in con::Connection.
|
pure virtual |
Implemented in con::Connection.
Referenced by Client::~Client(), and Client::handleCommand_Hello().
|
pure virtual |
Implemented in con::Connection.
Referenced by Server::DisconnectPeer(), and ClientInterface::step().
|
pure virtual |
Implemented in con::Connection.
Referenced by Client::getCurRate().
Implemented in con::Connection.
Referenced by Client::getServerAddress(), Server::handleCommand_Init(), and ClientInterface::step().
|
pure virtual |
Implemented in con::Connection.
|
pure virtual |
Implemented in con::Connection.
Referenced by Server::getClientConInfo(), and Client::getRTT().
|
pure virtual |
Implemented in con::Connection.
Referenced by Server::Receive(), and TryReceive().
|
pure virtual |
Implemented in con::Connection.
Referenced by Client::Send(), ClientInterface::send(), ClientInterface::sendCustom(), and ClientInterface::sendToAll().
|
pure virtual |
Implemented in con::Connection.
Referenced by Server::start().
|
inline |
References ReceiveTimeoutMs().
Referenced by Client::ReceiveAll().