Re: Telnet Protocol
Re: Telnet Protocol
- Subject: Re: Telnet Protocol
- From: Johan Carlberg <email@hidden>
- Date: Sat, 26 Oct 2002 12:15:15 +0200
\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
Chris Vincent (04.39 -0500 2002-10-26) skrev:
Howdy. I'm working on a MUD client, and that means I'm using the Telnet
protocol, as all MUD clients do. The problem I have is a couple of
Unicode characters that show up. For example, right when I connect to
some MUDs, the character \ufffd shows up. Does anybody know what it's
for? One also comes up before the password request. I've looked at the
Telnet specification docs, but they're very cryptic, and they don't seem
to answer my question anyway. Thanks in advance.
_______________________________________________
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.