[Twisted-Python] how to do server to server defined at runtime?
jn at who.net
Fri Apr 23 10:53:31 EDT 2004
I am trying to figure out a way to have a server talk to another server, you do not know about except at runtime.
In other words, a client tells the server to talk to another server. I figured about the problem I had earlier,
and moving the connectTCP outside of PBServerFactory, fixes that problem, which makes sense since it is now not part of the reacotr. But, then I do not know how to specify who to talk to at runtime.
For example in this code, how to I move connectTCP into the adder class?
factory = pb.PBClientFactory()
reactor.connectTCP('localhost', 7001, factory)
d = factory.getRootObject()
Thanks for any info,
Sign-up for Ads Free at Mail.com
More information about the Twisted-Python