ckbot :: port2port :: Connection :: Class Connection
[hide private]
[frames] | no frames]

Class Connection

source code


Abstract superclass of all Connection objects

Instance Methods [hide private]
 
open(self)
Make the connection active
source code
 
isOpen(self)
Test if connection is open
source code
 
write(self, msg)
(pure) Attempt to write the specified message through the connection.
source code
 
read(self, length)
(pure) Attempt to read the specified number of bytes.
source code
 
close(self)
Disconnect; further traffic may raise an exception
source code
 
reconnect(self, **changes)
Try to reconnect with some configuration changes
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

write(self, msg)

source code 

(pure) Attempt to write the specified message through the connection. Returns number of byte written

read(self, length)

source code 

(pure) Attempt to read the specified number of bytes. r Return number of bytes actually read