The telnet protocol

Started by
2 comments, last by Martee 22 years, 10 months ago
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
ReactOS - an Open-source operating system compatible with Windows NT apps and drivers
Advertisement
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.
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.
Thanks guys.
I guess I''ll just have to take another look at my post-options-negotiation code.

~~~~~~~~~~
Martee
http://www.csc.uvic.ca/~mdill
ReactOS - an Open-source operating system compatible with Windows NT apps and drivers

This topic is closed to new replies.

Advertisement