Home | Trees | Index | Help |
---|
Package xmpp :: Module transports :: Class TCPsocket |
|
PlugIn
--+
|
TCPsocket
HTTPPROXYsocket
Method Summary | |
---|---|
Cache connection point 'server'. | |
Try to connect. | |
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. | |
Fire up connection. | |
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 | |
Feed a provided debug line to main instance's debug facility along with our ID string. | |
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,
server=None)
Cache connection point 'server'. 'server' is the tuple of (host,
port) absolutely the same as standart tcp socket uses.
|
connect(self, server=None)Try to connect. Returns non-empty string on success. |
disconnect(self)Closes the socket. |
disconnected(self)Called when a Network Error or disconnection occurs. Designed to be overidden. |
getHost(self)Return the 'host' value that is connection is [will be] made to. |
getPort(self)Return the 'port' value that is connection is [will be] made to. |
pending_data(self, timeout=0)Returns true if there is a data ready to be read. |
plugin(self, owner)Fire up connection. Return non-empty string on success. Also registers self.disconnected method in the owner's dispatcher. Called internally. |
plugout(self)Disconnect from the remote server and unregister self.disconnected method from the owner's dispatcher. |
receive(self)Reads all pending incoming data. Calls owner's disconnected() method if appropriate. |
send(self, raw_data)Writes raw outgoing data. Blocks until done. If supplied data is unicode string, encodes it to utf-8 before send. |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Sun Dec 26 09:52:57 2004 | http://epydoc.sf.net |