I have been trying to use the FTcpListener without success.
I am stuck in an infinite while loop, namely the while(!Stopping) loop of line 149 in TcpListener.h. So it looks like this while loop is not threaded.
As this is engine code, i posted a question in answerhub in the bug section, but maybe i am just misusing it ?
Here is my code:
// Called when the game starts (gamestate's BeginPlay() function)
// server only
if (FileServerGameState->Role < ROLE_Authority) return;
// listening socket
FIPv4Endpoint Endpoint(FIPv4Address(127, 0, 0, 1), UYagFileServer::YagServerPort);
ListenerSocket = FTcpSocketBuilder("ServerListeningSocket")
//Set Buffer Size
int32 ReceiveBufferSize = 2 * 1024 * 1024;
int32 NewSize = 0;
YagTcpListener = new FTcpListener(*ListenerSocket);
if (YagTcpListener->Init()) YagTcpListener->Run();
Anyone has some experience with the FTcpListener class ?