quest about telnetlib

Mike Rovner mike at nospam.com
Thu Nov 13 19:04:35 CET 2003


??? wrote:
>> print tn.open("162.105.31.222",23)

Add some timeout here,

>> print tn.read_eager()

or repeat reading here.

>> the host is avaiable,but my python program cannt connect to it ,why?

You ARE connected 'cause open went all right,
you just not reading all the data or in other words
data are not yet available at the time of your read.

HTH,
Mike








More information about the Python-list mailing list