3
from Pyro import threadutil
11
return self.callcount # the number of completed calls
13
return Pyro.config.asDict()
15
threadname=threadutil.currentThread().getName()
16
print "delay called in thread",threadname
20
def onewaydelay(self):
21
threadname=threadutil.currentThread().getName()
22
print "onewaydelay called in thread",threadname
29
Pyro.config.SERVERTYPE="undefined"
30
servertype=raw_input("Servertype threaded or select (t/s)?")
32
Pyro.config.SERVERTYPE="thread"
34
Pyro.config.SERVERTYPE="select"
36
daemon=Pyro.core.Daemon()
38
uri=daemon.register(obj)
39
ns=Pyro.naming.locateNS()
40
ns.remove("example.servertypes")
41
ns.register("example.servertypes", uri)
42
print "Server is ready."