3 from twisted.spread import pb
4 import twisted.internet.app
6 class ServerObject(pb.Root):
7 def remote_add(self, one, two):
9 print "returning result:", answer
11 def remote_subtract(self, one, two):
14 app = twisted.internet.app.Application("server1")
15 app.listenTCP(8800, pb.BrokerFactory(ServerObject()))