CelticCraft/Plugins/VoxelFree/Source/Voxel/Private/VoxelMultiplayer/VoxelMultiplayerTcp.cpp

31 lines
1,011 B
C++

// Copyright 2020 Phyronnaz
#include "VoxelMultiplayer/VoxelMultiplayerTcp.h"
#include "VoxelMessages.h"
#include "Sockets.h"
#include "SocketSubsystem.h"
#include "IPAddress.h"
#include "Common/TcpSocketBuilder.h"
#include "Common/TcpListener.h"
#include "Async/Async.h"
#define TCP_MAX_PACKET_SIZE 128000
bool UVoxelMultiplayerTcpInterface::ConnectToServer(FString& OutError, const FString& Ip, int32 Port)
{
FVoxelMessages::Info(FUNCTION_ERROR("Multiplayer with TCP sockets is only available in Voxel Plugin Pro"));
return false;
}
bool UVoxelMultiplayerTcpInterface::StartServer(FString& OutError, const FString& Ip, int32 Port)
{
FVoxelMessages::Info(FUNCTION_ERROR("Multiplayer with TCP sockets is only available in Voxel Plugin Pro"));
return false;
}
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////