from SimpleXMLRPCServer import SimpleXMLRPCServer, SimpleXMLRPCRequestHandlerfrom SocketServer import ForkingMixInclass Math: def pow(self, x, y): return x ** y def hex(self, x): return "%x" % xclass ForkingServer(ForkingMixIn, SimpleXMLRPCServer): passserveraddr = ('', 8765)srvr = ForkingServer(serveraddr, SimpleXMLRPCRequestHandler)srvr.register_instance(Math())srvr.register_introspection_functions()srvr.serve_forever()
Name (required)
email (will not be published) (required)
Website