Yet Another Robot Platform
A creator for readers. More...
|virtual PortReader *||create ()=0|
|Factory for PortReader objects. More...|
A creator for readers.
This is used when you want a Port to create a different reader for every input connection it receives. This is a very quick way to make a multi-threaded server that keeps track of which input is which. Inherit from this class, defining the PortReaderCreator::create method. Then pass an instance to Port::setReaderCreator. The create() method will be called every time the Port receives a new connection, and all input coming in via that connection will be channeled appropriately.