Files
FlaxEngine/Source/Engine/Networking/Drivers/ENetDriver.cpp
Damian Korczowski 339e5a5d91 Add ENet thirdparty
2021-03-11 19:23:10 +01:00

47 lines
799 B
C++

// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
#include "ENetDriver.h"
#include "Engine/Core/Collections/Array.h"
#define ENET_IMPLEMENTATION
#define _WINSOCK_DEPRECATED_NO_WARNINGS
#include <enet/enet.h>
#undef _WINSOCK_DEPRECATED_NO_WARNINGS
#undef SendMessage
void ENetDriver::Initialize(const NetworkConfig& config)
{
}
void ENetDriver::Dispose()
{
}
bool ENetDriver::Listen()
{
return false;
}
void ENetDriver::Connect()
{
}
void ENetDriver::Disconnect()
{
}
void ENetDriver::Disconnect(const NetworkConnection& connection)
{
}
bool ENetDriver::PopEvent(NetworkEvent* eventPtr)
{
return true; // No events
}
void ENetDriver::SendMessage(NetworkChannelType channelType, const NetworkMessage& message, Array<NetworkConnection, HeapAllocation> targets)
{
}