47 lines
799 B
C++
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)
|
|
{
|
|
}
|