Package common :: Module proxy65_manager :: Class HostTester
[hide private]
[frames] | no frames]

Class HostTester

source code


Fake proxy tester
Instance Methods [hide private]
 
__init__(self, host, port, jid, sid, sender_jid, on_success, on_failure)
Try to establish and auth to proxy at (host, port)
source code
 
connect(self)
Create the socket and plug it to the idlequeue
source code
 
read_timeout(self)
Called when timeout happened
source code
 
pollend(self)
Called on stream failure
source code
 
pollout(self)
Called on new write event (connect in sockets is a pollout)
source code
 
pollin(self)
Called on new read event
source code
 
do_connect(self) source code

Inherited from socks5.Socks5: close_file, continue_paused_transfer, disconnect, get_fd, get_file_contents, open_file_for_reading, read_connect, receive, rem_fd, send_raw, write_next

Instance Variables [hide private]

Inherited from xmpp.idlequeue.IdleObject: fd

Method Details [hide private]

__init__(self, host, port, jid, sid, sender_jid, on_success, on_failure)
(Constructor)

source code 

Try to establish and auth to proxy at (host, port)

Calls on_success, or on_failure according to the result.

Overrides: xmpp.idlequeue.IdleObject.__init__

connect(self)

source code 
Create the socket and plug it to the idlequeue

read_timeout(self)

source code 
Called when timeout happened
Overrides: xmpp.idlequeue.IdleObject.read_timeout
(inherited documentation)

pollend(self)

source code 
Called on stream failure
Overrides: xmpp.idlequeue.IdleObject.pollend
(inherited documentation)

pollout(self)

source code 
Called on new write event (connect in sockets is a pollout)
Overrides: xmpp.idlequeue.IdleObject.pollout
(inherited documentation)

pollin(self)

source code 
Called on new read event
Overrides: xmpp.idlequeue.IdleObject.pollin
(inherited documentation)

do_connect(self)

source code