cheeseypuffles

Members
  • Content count

    2
  • Joined

  • Last visited

Community Reputation

119 Neutral

About cheeseypuffles

  • Rank
    Newbie
  1. SDL_net TCP packets getting truncated

    I understand that TCP is a stream protocol, but when the data received is split, the missing data does not appear in the previous data received by SDLnet_TCP_Recv - all of the data received while the window is paused are all missing the first few bytes of data.
  2. Hi everyone! I've been creating a game that utilizes SDL_net to send and receive TCP messages from different clients, but I've recently run into a problem. When a user drags the window (created with SDL), the program pauses because of Windows. However, I've noticed that all of the packets that have been sent to that client become truncated while the window is being dragged because the game is being paused. For example, if I sent a packet containing "Hello world" the client would receive "llo world" after they stop dragging the window.    I currently send data by using SDLNet_TCP_Send(socket, packetBuffer, messageLength) and receive them by using SDLNet_TCP_Recv(socket, packetBuffer, bufferSize)     Does anyone know if there is a solution to this problem or if there are any good workarounds?