SFML community forums

Help => Network => Topic started by: Tytan on June 03, 2017, 08:20:18 am

Title: Not sure if noob question... Or real problem
Post by: Tytan on June 03, 2017, 08:20:18 am
(Sorry for the no-info-title lol.)

Hi! I have a server, and a client program, bothcompile and connect to each other fine, I can connect multiple users and all the good stuff...
But when I try to send data to the server from one of the clients, I need to put 10 characters infront of the message I want to send, otherwise the data is corrupt.
Does anyone know the cause of this madness?

Client (Only posted main loop)
(click to show/hide)

Server (only posted mian loop)
(click to show/hide)

All information will be useful :)
Title: Re: Not sure if noob question... Or real problem
Post by: Laurent on June 03, 2017, 08:40:39 am
Replace sizeof(input) with input.size().