no no...
I'm using the windows' telnet client.
and I'm writing my own server, in C.
when I connect my server with telnet, I can only type one char into the client before it will auto sends it to the server (before I hit ENTER).
The question is, how can my server tell, when I hit ENTER in the telnet client?
this is what I want to do:
Code:
recv(sockfd, msg, 100, 0);
if (strcmp(msg, "yes"))
send(sockfd, "yes\n\r", 5, 0);
*note: I checked what the msg is receiving, and that is only one char, instead of a string.
thanks.