On Mon, Oct 13, 2003 at 07:00:14PM -0400, Ken Town wrote: > How can I turn echo off to allow a user to input of a password using > POE::Wheel::ReadWrite ? > > The server is running on win32 and the client connection uses telnet to connect to > the server.
The short answer is: You can't. At least not with anything POE supports directly. Your telnet client is performing the echo locally, and your server must understand the protocol enough to tell the client to stop. POE::Wheel::ReadWrite has no concept of the telnet (or any other) protocol. For that you'll need some manner of telnet Filter. As far as I'm aware, nobody has written one of those. Or if they have, it hasn't been released publicly. You may be able to suppress echo in the client without negotiating a proper telnet session. You'd send something like IAC DONT ECHO which is "\xFF\xFE\x01". When you want echo back on, you'd send IAC DO ECHO which is "\xFF\xFD\x01". As I mentioned, these might not work without first establishing that the connection uses the telnet protocol. For that I think you must perform some handshaking at connection time. The telnet protocol RFC covers it, as does a nicely written page at http://www.scit.wlv.ac.uk/~jphb/comms/telnet.html -- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/
