Archived

This topic is now archived and is closed to further replies.

Martee

The telnet protocol

Recommended Posts

Ok, so I''m trying (and failing...) to write a simple telnet client. I can connect to a server and negotiate options (IAC''s are fun). The problem is ... what do I do next? I can''t seem to find any info on what do do after that. I haven''t found a login option (although there is one for logout - 18). Or ... am I not negotiating options properly, and whatever is supposed to happen when that''s done isn''t happening? ~~~~~~~~~~ Martee http://www.csc.uvic.ca/~mdill

Share this post


Link to post
Share on other sites
As far as I know, logging in isn''t part of the telnet protocol. That''s the problem for the box you''re connecting to. All you do is negotiate some options for data transfer (the IAC stuff) and send and receive data. If you telnet to a login port, the other side will provide you with the login prompt.

Share this post


Link to post
Share on other sites
Yeah... all the client does is negotiate options and display the data received from the server. The logging in process is just like any other prompt... the server sends the text, and the user with the client decides what to type and send in return... nothing automated about it. The server should just spit out the login prompt at you at some point with no action required on your part for it to do so.

Share this post


Link to post
Share on other sites