| 56 | } |
| 57 | |
| 58 | bool 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 | |
| 74 | void ENetDriver::Dispose() |
| 75 | { |
nothing calls this directly
no test coverage detected