Package ckbot :: Module wixeltdma :: Class NodeConnection
[hide private]
[frames] | no frames]

Class NodeConnection

source code



Concrete Connction subclass specialized to send and recieve dat via
a specific TMDA node

ALGORITHM:
  write -- prepend prefix and send via hub
  read -- pull from message queue

Instance Methods [hide private]
 
__init__(self, hubwrite, hubisopen)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
open(self)
Make the connection active
source code
 
enqueue(self, msg) 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 port2port.Connection: isOpen, write

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, hubwrite, hubisopen)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

open(self)

source code 

Make the connection active

Overrides: port2port.Connection.open

read(self, length)

source code 

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

Overrides: port2port.Connection.read
(inherited documentation)

close(self)

source code 

Disconnect; further traffic may raise an exception

Overrides: port2port.Connection.close

reconnect(self, **changes)

source code 

Try to reconnect with some configuration changes

Overrides: port2port.Connection.reconnect