Re: Telnet
- Posted by acran at readout.fsnet.co.uk Mar 22, 2002
- 502 views
At 20:50 21/03/02 +0100, you wrote: >Hi, could someone tell me how i can make a telnet client >in Euphoria??? or send me a sample code . > >ThanX >Renzo Beggia >from Belgium Hello Renzo, A few years back I wrote a really basic telnet client in C. I've dusted off the source (now I know why I keep copies of stuff like this and you can take a look at: http://www.readout.fsnet.co.uk/projects/telnetst/index.htm Although C isn't the easiet code to read it might give you ideas how to handle the various byte codes the telnet protocol uses to setup and maintain a link. I would not have been able to write this client (nor would I have attempted to) without having the following book (or one similar): Internetworking with TCP/IP Volume III Client-Server programming and applications BSD Socket Version Douglas E. Comer and David L. Stevens ISBN: 0-13-020272-X Here is a link on Amazon: http://www.amazon.com/exec/obidos/ASIN/013260969X/qid=1016805737/sr=1-4/ref= sr_1_4/002-5600339-4390416 Note that the mailer will probably wrap that URL. You'll need to dig out some information on the telnet IAC (Interpret as command) character. I just punched in: IAC DONT ECHO into http://www.google.com/ and it turns up some useful (if initially cryptic) links. As for the actual TCP connections in Euphoria I can't really help but there are libraries in the archive that will help. Hopefully these libraries, some useful web resources on telnet and my working (well just) example of a telnet client in C should give you enough to at least get started on a Euphoria based client of your own. Good luck! Regards, Andy Cranston.