Home | Trees | Indices | Help |
|
---|
|
This class defines direct TCP connection method.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
Cache connection point 'server'. 'server' is the tuple of (host, port) absolutely the same as standard tcp socket uses. However library will lookup for ('_xmpp-client._tcp.' + host) SRV record in DNS and connect to the found (if it is) server instead
|
SRV resolver. Takes server=(host, port) as argument. Returns new (host, port) pair |
Fire up connection. Return non-empty string on success. Also registers self.disconnected method in the owner's dispatcher. Called internally. |
Try to connect to the given host/port. Does not lookup for SRV record. Returns non-empty string on success. |
Reads all pending incoming data. In case of disconnection calls owner's disconnected() method and then raises IOError exception. |
Writes raw outgoing data. Blocks until done. If supplied data is unicode string, encodes it to utf-8 before send. |
Called when a Network Error or disconnection occurs. Designed to be overidden. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Sep 25 18:45:14 2014 | http://epydoc.sourceforge.net |