Re: Telnet Protocol
Re: Telnet Protocol
- Subject: Re: Telnet Protocol
- From: Chris Vincent <email@hidden>
- Date: Sat, 26 Oct 2002 05:51:08 -0500
>
\ufffd would be the first two bytes of a Telnet command (Telnet is a 8
>
bit protocol), FF is IAC (Interpret As Command), FD is DO (as in "do
>
this feature" - FE is DON'T) and the following byte specifies what
>
feature to do (e.g. 01 for echoing characters). An IAC DO command
>
either requests the receiver to use a specific feature or confirms that
>
the receiver is expected to use a specific feature (the telnet spec is
>
indeed cryptic).
>
>
Depending on the server's implementation of Telnet, you can either just
>
ignore IAC commands (and hard-code the behavior of your client), or
>
just reply with a IAC WILL command (FF FB xx) with the same option
>
number (some Telnet server demands responses to their commands), or you
>
could implement a fully Telnet-compliant client (although I guess that
>
a MUD server don't care much about Telnet options).
>
>
I would go for the first option, since it sounds like that you get
>
contact with the server and only needs to get rid of the "garbage
>
characters". Option 2 is necessary for telnetting to some OSes (Solaris
>
7 IIRC), that requires that the negotiation is completed before any
>
text is sent (i.e. the login prompt is not sent before the proper IAC
>
WILL/WON'Ts are received).
>
>
Johan
Ah, thanks. That answers my question. There is one more issue,
though. That is the command that comes right before the MUD asks for
your password. I've seen clients that change the input field to a
password field when the MUD asks for a password. I assume that this
command has something to do with it. How exactly do I know when a
password is being asked for? I know it doesn't have to do with parsing
for the word "password" or something like that, as the telnet program
accessed from Terminal.app recognizes a password request even under
special circumstances. If you could tell me how this works, I'd really
appreciate it. Thanks again!
"There are 10 kinds of people in the world. The kind that understand
binary, and the kind that don't." - Unknown
Dris.
- Random Signature #9 -
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.