Telnet Server [Archive] - C Board

PDA

View Full Version : Telnet Server


rdnjr
12-02-2002, 08:51 AM
I currently have a program that has its own client to communicate with it over the network. What would I have to do to rewrite the server to accept and understand connections from a standard telnet client? I have not been able to find much information on the control codes for telnet.

rotis23
12-02-2002, 10:36 AM
telnet functions at the socket level, and is essentially a raw socket client.

as long as your server accepts tcp connections, listens on a tcp port and accepts a data stream you can use telnet as your client.

test it out. write a tcp time server and use telnet as a client.

rdnjr
12-02-2002, 11:07 AM
I've made a daytime server and I don't have a problem sending data to the client. My current problem is that the client keeps sending "xterm" string like it's waiting for my program to acknowledge the terminal type

Lynux-Penguin
12-03-2002, 11:38 PM
http://www.google.com/linux?q=Network+programming

rdnjr
12-05-2002, 11:27 AM
I'd like to thank everyone that helped me on this. To anyone that might be interested in this subject, I've found a website that has compiled ALL the telnet rfc's into an understandable document at http://www.scit.wlv.ac.uk/~jphb/comms/telnet.html . Again, thanks for all the help.

-rdnjr