Thank you Mindiell for your reply!
I'm still kinda stuck at this point:
SFML uses 2 types of sending data between client and server.
Send (const char *Data, std::size_t Size)
Send (Packet &PacketToSend)
I guess I'm supposed to use the one sending the Packet. (Does this even have something to do with the protocol?
)
So I hope I got your point:
By creatig my own Packet I can send the server what he should do.
Some example:
Client side:int what_to_do = 1;
//send the server a packet containing the what_to_do
Packet ToSend;
ToSend << what_to_do
Server side:// get the packet
Packet recieved;
int what_to_do;
received >> what_to_do
if (what_to_do == 1)
{
// do something...
}
Well I might be totally wrong. If so, is there any step-by-step tutorial out there since I havent found any by now.
Thanks in advance
greets