Telnetlib
Andrew MacIntyre
andymac at bullseye.apana.org.au
Wed Jul 5 18:48:30 EDT 2000
[mailed to originator & python-list]
On Wed, 5 Jul 2000 vxgvxg at my-deja.com wrote:
> When using any of the telnetlib read functions (such as read_all(),
> read_until(), etc.), the 0x00's seem to be dropped from the data
> stream. Any ideas?
I know nothing of telnetlib, but seem to recall that by default the telnet
protocol negotiates 7-bit ascii with remapping/filtering of control codes
(the NUL character is quite likely to be affected).
It is possible to negotiate 8-bit ascii, and minimise the
remapping/filtering with many telnet daemons. Whether telnetlib supports
this will require perusal of the docs.
--
Andrew I MacIntyre "These thoughts are mine alone..."
E-mail: andrew.macintyre at aba.gov.au (work) | Snail: PO Box 370
andymac at bullseye.apana.org.au (play) | Belconnen ACT 2616
andymac at pcug.org.au (play2) | Australia
More information about the Python-list
mailing list