Frederic Bouvier wrote:
> 
> The telnet interface produce wrong line ending when I run both FlightGear
> and the telnet client on Win2k. I've just sent a patch to Curt that produce
> line ending based on the platform where fgfs is running ( something between
> #ifdef and #endif ).
> 
> For the moment, this patch only address the issue when fgfs and
> the telnet client run on the same platform.
> 
> Thinking of it now, it would be better to generate proper line endings based
> on the capabilities of the client. Do the telnet interface support telnet
> commands DO, DONT, WILL and WONT ? or perhaps line ending can be deduced
> from
> the incoming command.
> 

Just a word of warning: there are currently two telnet servers in
FlightGear.  The original --props server and the new --telnet server.  I
haven't had time to combine them into a single server yet.  Neither
server implements telnet's option negotiation.  The fact that you can
connect to them with a telnet client doesn't make them telnet servers. 
You can connect to nntp, ftp, smtp and pop3 servers with a telnet client
too.  

As for line endings I think its simpler if we just use CRLF for both
client and server.  I will check that the new server always sends CRLF.

Cheers,
Bernie

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to