MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Initialize

Method Initialize

Source/Engine/Networking/Drivers/ENetDriver.cpp:58–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58bool ENetDriver::Initialize(NetworkPeer* host, const NetworkConfig& config)
59{
60 _networkHost = host;
61 _config = config;
62 _peerMap.Clear();
63
64 if (enet_initialize() != 0)
65 {
66 LOG(Error, "Failed to initialize ENet driver!");
67 return true;
68 }
69
70 LOG(Info, "Initialized ENet driver");
71 return false;
72}
73
74void ENetDriver::Dispose()
75{

Callers

nothing calls this directly

Calls 2

enet_initializeFunction · 0.85
ClearMethod · 0.45

Tested by

no test coverage detected