Home | Trees | Index | Help |
---|
Package xmpp :: Module transports :: Class HTTPPROXYsocket |
|
PlugIn
--+ |TCPsocket
--+ | HTTPPROXYsocket
Method Summary | |
---|---|
Caches proxy and target addresses. | |
Starts connection. | |
Overwrites DEBUG tag to allow debug output be presented as "CONNECTproxy". | |
Starts connection. | |
Inherited from TCPsocket | |
Closes the socket. | |
Called when a Network Error or disconnection occurs. | |
Return the 'host' value that is connection is [will be] made to. | |
Return the 'port' value that is connection is [will be] made to. | |
Returns true if there is a data ready to be read. | |
Disconnect from the remote server and unregister self.disconnected method from the owner's dispatcher. | |
Reads all pending incoming data. | |
Writes raw outgoing data. | |
Inherited from PlugIn | |
Attach to main instance and register ourself and all our staff in it. | |
Unregister all our staff from main instance and detach from it. |
Method Details |
---|
__init__(self,
proxy,
server,
use_srv=True)
Caches proxy and target addresses. 'proxy' argument is a dictionary
with mandatory keys 'host' and 'port' (proxy address) and optional keys
'user' and 'password' to use for authentication. 'server' argument is a
tuple of host and port - just like TCPsocket uses.
|
connect(self, dupe=None)Starts connection. Connects to proxy, supplies login and password to it (if were specified while creating instance). Instructs proxy to make connection to the target server. Returns non-empty sting on success.
|
DEBUG(self, text, severity)Overwrites DEBUG tag to allow debug output be presented as "CONNECTproxy".
|
plugin(self, owner)Starts connection. Used interally. Returns non-empty string on success.
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Mon Mar 6 14:11:54 2006 | http://epydoc.sf.net |