[Twisted-Python] server client in one code

2009-02-26 Thread khawar hasham
I am trying to use twisted to build an application that can act as server as well as client at the same time. I need this application to send and receive messages back and forth between two of its instances. I used the reactor.run() to start listen and connectTCP. My problem is that I need to

Re: [Twisted-Python] What to do when a service fails to start, also, deferred and startService

2009-02-26 Thread Terry Jones
Following up on myself Here's an updated/working version of the MultiService subclass I proposed the other day: class GuardedMultiService(service.MultiService): def __init__(self, guardService): service.MultiService.__init__(self) self.guardService = guard