#include <NetworkSystem.h>
|
| | NetworkSystem (NetworkMode mode) |
| bool | Init () |
| void | Shutdown () override |
| bool | GetSocketData (uint16_t &outPort, char *outIP, size_t &outIPSize) const |
| bool | HasSocket () const |
| int | SendToSocket (const NetworkMessage &aMessage, const SocketInfo &aReciever) const |
| void | PumpIncoming (uint32_t nowMS) |
| void | RegisterLogMessage (IncomingPacket &aLog, const size_t &aOffset, const char *aMessage) |
| IncomingHandleT< INetworkTransfer > | GetNextIncoming () override |
| bool | Receive (NetworkMessage &outMessage) override |
| bool | ConnectToHub (const char *aIP, uint16_t aPort=0, bool aIsMultiCast=true) override |
| bool | Send (const NetworkMessage &msg, uint16_t aPeerID) override |
| int | StartListen (const char *aIP, uint16_t aPort) override |
| bool | IsConnected () override |
| bool | GetPeerInfo (PeerId id, PeerInfo &outInfo) const override |
| bool | UpdatePeerName (PeerId id, std::string_view name) override |
| bool | SetPeerAuthenticated (PeerId id, bool authenticated) override |
| bool | UpdatePeerColor (PeerId id, const float aColor[4]) override |
| int | RegisterForMulticastGroup (uint32_t aMulticastIP, uint32_t aInterface) override |
| bool | UnregisterForMulticastGroup (uint32_t aMulticastIP, uint32_t aMulticastSourceIP, uint32_t aInterface) override |
| bool | RegisterForMulticastGroup (const char *aMulticastIPStr, const char *aInterfaceStr) override |
| | INetworkTransfer (NetworkMode aMode) |
| virtual | ~INetworkTransfer ()=default |
| virtual size_t | GetIncomingCount () const |
| NetworkMode | GetMode () const |
| | INetworkTransfer ()=default |
◆ NetworkSystem()
◆ ConnectToHub()
| bool NetworkSystem::ConnectToHub |
( |
const char * | aIP, |
|
|
uint16_t | aPort = 0, |
|
|
bool | aIsMultiCast = true ) |
|
overridevirtual |
◆ CreatePayloadPackage()
| int NetworkSystem::CreatePayloadPackage |
( |
const NetworkMessage & | aMessage, |
|
|
char * | outBuf, |
|
|
int | aCapacityLimit ) |
|
staticprotected |
◆ CreateSendSocket()
| SOCKET NetworkSystem::CreateSendSocket |
( |
| ) |
|
|
protected |
◆ CreateSocket()
| bool NetworkSystem::CreateSocket |
( |
uint16_t | aPort, |
|
|
bool | aBindSocket, |
|
|
bool | aIsMulticastBind = false ) |
|
protected |
◆ GetBestLocalIPv4()
| bool NetworkSystem::GetBestLocalIPv4 |
( |
char * | outIP, |
|
|
size_t & | outIPSize ) const |
|
protected |
◆ GetNextIncoming()
◆ GetPeerInfo()
| bool NetworkSystem::GetPeerInfo |
( |
PeerId | id, |
|
|
PeerInfo & | outInfo ) const |
|
overridevirtual |
◆ GetSocketData()
| bool NetworkSystem::GetSocketData |
( |
uint16_t & | outPort, |
|
|
char * | outIP, |
|
|
size_t & | outIPSize ) const |
◆ HasSocket()
| bool NetworkSystem::HasSocket |
( |
| ) |
const |
◆ Init()
| bool NetworkSystem::Init |
( |
| ) |
|
◆ IsConnected()
| bool NetworkSystem::IsConnected |
( |
| ) |
|
|
overridevirtual |
◆ PumpIncoming()
| void NetworkSystem::PumpIncoming |
( |
uint32_t | nowMS | ) |
|
◆ Receive()
◆ RecieveFromSocket()
◆ RegisterForMulticastGroup() [1/2]
| bool NetworkSystem::RegisterForMulticastGroup |
( |
const char * | aMulticastIPStr, |
|
|
const char * | aInterfaceStr ) |
|
overridevirtual |
◆ RegisterForMulticastGroup() [2/2]
| int NetworkSystem::RegisterForMulticastGroup |
( |
uint32_t | aMulticastIP, |
|
|
uint32_t | aInterface ) |
|
overridevirtual |
◆ RegisterLogMessage()
| void NetworkSystem::RegisterLogMessage |
( |
IncomingPacket & | aLog, |
|
|
const size_t & | aOffset, |
|
|
const char * | aMessage ) |
◆ Send()
| bool NetworkSystem::Send |
( |
const NetworkMessage & | msg, |
|
|
uint16_t | aPeerID ) |
|
overridevirtual |
◆ SendToSocket()
◆ SetPeerAuthenticated()
| bool NetworkSystem::SetPeerAuthenticated |
( |
PeerId | id, |
|
|
bool | authenticated ) |
|
overridevirtual |
◆ Shutdown()
| void NetworkSystem::Shutdown |
( |
| ) |
|
|
overridevirtual |
◆ StartListen()
| int NetworkSystem::StartListen |
( |
const char * | aIP, |
|
|
uint16_t | aPort ) |
|
overridevirtual |
◆ UnregisterForMulticastGroup()
| bool NetworkSystem::UnregisterForMulticastGroup |
( |
uint32_t | aMulticastIP, |
|
|
uint32_t | aMulticastSourceIP, |
|
|
uint32_t | aInterface ) |
|
overridevirtual |
◆ UpdatePeerColor()
| bool NetworkSystem::UpdatePeerColor |
( |
PeerId | id, |
|
|
const float | aColor[4] ) |
|
overridevirtual |
◆ UpdatePeerName()
| bool NetworkSystem::UpdatePeerName |
( |
PeerId | id, |
|
|
std::string_view | name ) |
|
overridevirtual |