![]() |
Blamite Game Engine - blam!
00406.12.10.23.1457.blamite
The core library for the Blamite Game Engine.
|
#include <network_manager.h>
Public Member Functions | |
~NetworkManager ()=default | |
void | GetPeerId (NetworkPeerId *peerId) |
Get the local peer ID for this process. More... | |
Result | Flush () |
Send pending network messages. More... | |
Result | OpenPeer (NetworkPeerId peerId, char const *routeData) |
Open a connection to a remote peer. More... | |
Result | UpdatePeer (NetworkPeerId peerId, char const *routeData) |
Update the route data for a connected peer. More... | |
Result | ClosePeer (NetworkPeerId peerId) |
Close the connection to a remote peer. More... | |
Result | OpenChannel (NetworkPeerId peerId, NetworkChannelId channelId, bool reliable) |
Open a message channel to a connected peer. More... | |
Result | CloseChannel (NetworkPeerId peerId, NetworkChannelId channelId) |
Close a message channel to a connected peer. More... | |
Result | SendMessage (NetworkPeerId peerId, NetworkChannelId channelId, std::uint8_t *data, std::uint32_t dataLength) |
Send a message to a connected peer over an opened message channel. More... | |
Public Attributes | |
Event< NetworkPeerId, NetworkChannelId, std::uint8_t *, std::uint32_t > | OnMessage |
Event< char const * > | OnRouteUpdate |
Friends | |
class | Core |
|
default |
Result discord::NetworkManager::CloseChannel | ( | NetworkPeerId | peerId, |
NetworkChannelId | channelId | ||
) |
Close a message channel to a connected peer.
Result discord::NetworkManager::ClosePeer | ( | NetworkPeerId | peerId | ) |
Close the connection to a remote peer.
Result discord::NetworkManager::Flush | ( | ) |
Send pending network messages.
void discord::NetworkManager::GetPeerId | ( | NetworkPeerId * | peerId | ) |
Get the local peer ID for this process.
Result discord::NetworkManager::OpenChannel | ( | NetworkPeerId | peerId, |
NetworkChannelId | channelId, | ||
bool | reliable | ||
) |
Open a message channel to a connected peer.
Result discord::NetworkManager::OpenPeer | ( | NetworkPeerId | peerId, |
char const * | routeData | ||
) |
Open a connection to a remote peer.
Result discord::NetworkManager::SendMessage | ( | NetworkPeerId | peerId, |
NetworkChannelId | channelId, | ||
std::uint8_t * | data, | ||
std::uint32_t | dataLength | ||
) |
Send a message to a connected peer over an opened message channel.
Result discord::NetworkManager::UpdatePeer | ( | NetworkPeerId | peerId, |
char const * | routeData | ||
) |
Update the route data for a connected peer.
|
friend |
Event<NetworkPeerId, NetworkChannelId, std::uint8_t*, std::uint32_t> discord::NetworkManager::OnMessage |
Event<char const*> discord::NetworkManager::OnRouteUpdate |