View Single Post
Author Message
Skymotion
New Member
Join Date: Apr 2019
Location: Russia
Old 12-04-2020 , 16:36   SOCKET! Socket splits a packet into parts!
Reply With Quote #1

Hello!
Today I wanted to transfer a 6kb file from one server to the game server over a TCP connection.
As far as I know, the maximum packet size is 65535 bytes. This is more than enough to transfer this small file in one package.
I noticed that I am sending a complete packet, and socket splits it into parts by calling the receive function several times.
I read about SocketSetOption but I don't understand how to use it correctly because it leads nowhere.
Please tell me how you can disable the division of the package into parts!
I hope for your answer. Thanks in advance!
Skymotion is offline
Send a message via Skype™ to Skymotion