Click to See Complete Forum and Search --> : telnet


jma78
October 5th, 2005, 07:47 AM
Hi

I use ms vs 6 c++ on Win xp.

i have write a tcp client, which i will use to connect to a telnet server. i can connect to the server und i get first information (name, host , etc) from it.

but when ich send a command to the server e.g. "?" , the server do not answer the reply.

in the attachment is my code. I use send(), und recv(), not stdin,stdout (pipes)

who can say where is the failure.
thanks for your answers
jma

jma78
October 5th, 2005, 09:50 AM
hi

i forgot "\r\n" behind the message, which will send to the server

jma