I am learning how to program a TCP server and have a problem.
I get everything up and running and I can connect to the server and the server can send information out to the client fine.
The problem I have now though is that I'd like to know how to tell the server to prompt the user to enter information (aka commands). I have tried the recv(socket, buffer, bufferlength, flags) approach but I think I don't know the right flags (I'm trying '0')to use because I can only recieve one letter, after that theres a big string of symbols.
Any help as to how I can get strings and no jibberish would be most appreciated, as always.