So, I’ve made a tcp client with both sender and receiver capabilities, based on Rama’s UDP client. The only thing I changed is this line
SenderSocket = FUdpSocketBuilder(*YourChosenSocketName).AsReusable().WithBroadcast();
To FTcpSocketBuilder (omitting .WithBradcast() in the way). Also, SendTo() doesn’t actually work without first doing
senderSocket->Connect(*remoteAdress);
HOWEVER
Recv() works very strange. bytesPending equals 8 bytes, the message that was sent to me by server. Hovever bytesRead goes 0. Why can’t it read anything, though it totaly came through.
ALSO
Send() doesn’t actually deliver anything. It’s not “not sending”, because bytesSent is 12. But server doesn’t actually get anything. When I tried to send something to server through unity it was delivered, that’s why I think the problem is in my code.