[Twisted-Python] Problem with using mktap
Roland Hedberg
roland.hedberg at adm.umu.se
Tue Nov 16 13:21:37 MST 2004
2004-11-16 kl. 19.57 skrev Itamar Shtull-Trauring:
> On Tue, 2004-11-16 at 19:41 +0100, Roland Hedberg wrote:
>
>> def makeService( config ):
>> port = int(config["port"])
>> routeServer = config["spocp"]
>> nodename = config["name"]
>>
>> application = service.Application('UDSRouter') <-- DELETE
>> f = spocpFactory()
>> reactor.connectUNIX( routeServer, f )
>> router = RudsProt( f,nodename)
>> udpServer = internet.UDPServer( port, router )
>> udpServer.setServiceParent(application) <-- DELETE
>> return udpServer
>
> Get rid of the lines creating an Application instance or using it in
> any
> way.
OK, done. So now RudsProt.__init__() is run when I run mktap, but I'm
still missing spocpFactory.__init__().
-- Roland
More information about the Twisted-Python
mailing list