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

Method Dispose

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

Source from the content-addressed store, hash-verified

72}
73
74void ENetDriver::Dispose()
75{
76 if (_peer)
77 enet_peer_disconnect_now(_peer, 0);
78 enet_host_destroy(_host);
79
80 enet_deinitialize();
81
82 _peerMap.Clear();
83
84 _peer = nullptr;
85 _host = nullptr;
86
87 LOG(Info, "ENet driver stopped!");
88}
89
90bool ENetDriver::Listen()
91{

Callers

nothing calls this directly

Calls 4

enet_peer_disconnect_nowFunction · 0.85
enet_host_destroyFunction · 0.85
enet_deinitializeFunction · 0.85
ClearMethod · 0.45

Tested by

no test coverage detected