Skip to content

Instantly share code, notes, and snippets.

@tobiasrohloff
Last active January 3, 2016 00:59
Show Gist options
  • Save tobiasrohloff/8386355 to your computer and use it in GitHub Desktop.
Save tobiasrohloff/8386355 to your computer and use it in GitHub Desktop.
simple xmlrpc-server example with python
from SimpleXMLRPCServer import SimpleXMLRPCServer
def add(x, y):
return x + y
srv = SimpleXMLRPCServer(("localhost", 5080))
srv.register_function(add)
srv.serve_forever()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment