Hello Guys :), I've a problem to receive string from client to server :
In the client i use :
to send string to server;
In the server i use :
, to receive string, but when i go to write the string that i've receive from the client with :
, the output are a bad characters.
Can you Help me?
Thanks and sorry for my bad english :)
In the client i use :
Code:
send(socket,string.c_str(),string.size(),0)
In the server i use :
Code:
recv(socket,char,sizeof(char),0)
Code:
std::cout<<char
Can you Help me?
Thanks and sorry for my bad english :)