class postman(microprocess): def __init__(self, source, sourcebox, sink, sinkbox): super(postman, self).__init__() self.source = source self.sourcebox = sourcebox self.sink = sink self.sinkbox = sinkbox def main(self): while 1: yield 1 if self.source.dataReady(self.sourcebox): d = self.source.recv(self.sourcebox) self.sink.send(d, self.sinkbox)
This is an ongoing community based development site. As a result the contents of this page is the opinions of the contributors of the pages involved not the organisations involved. Specificially, this page may contain personal views which are not the views of the BBC. (the site is powered by a wiki engine)
(C) Copyright 2008 Kamaelia Contributors, including the British Broadcasting Corporation, All Rights Reserved.