Package rospy :: Package impl :: Module tcpros_pubsub :: Class QueuedConnection

Class QueuedConnection

source code

object --+
         |
        QueuedConnection

It wraps a Transport instance and behaves like one but it queues the data written to it and relays them asynchronously to the wrapped instance.

Instance Methods
 
__init__(self, connection, queue_size)
ctor.
source code
 
__getattr__(self, name) source code
 
write_data(self, data) source code

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

Properties

Inherited from object: __class__

Method Details

__init__(self, connection, queue_size)
(Constructor)

source code 

ctor.

Parameters:
  • connection (Transport) - the wrapped transport instance
  • queue_size (int) - the maximum size of the queue, zero means infinite
Overrides: object.__init__