|
|
bool | InitServer (const u16 port, const u32 maxPeers=64, const u32 channels=1, const u32 timeoutMs=0) |
| |
|
bool | InitClient (const u32 channels=1, const u32 timeoutMs=0) |
| |
|
void | Shutdown () |
| |
|
Peer | Connect (const Address &address, const u32 data=0) |
| |
|
void | Disconnect (const PeerId peerId, const u32 data=0) |
| |
|
void | Send (const PeerId peerId, std::vector< u8 > &data, const ChannelId channel=0, const bool reliable=true) |
| |
|
std::queue< NetworkEvent > | Poll () |
| |
|
Peer | GetPeer (const PeerId peerId) |
| |
|
const std::unordered_map< PeerId, Peer > & | GetPeers () |
| |
The documentation for this class was generated from the following files: