diff options
Diffstat (limited to 'examples/bench/jsonrpc_server.py')
-rw-r--r-- | examples/bench/jsonrpc_server.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/bench/jsonrpc_server.py b/examples/bench/jsonrpc_server.py new file mode 100644 index 0000000..4500a02 --- /dev/null +++ b/examples/bench/jsonrpc_server.py @@ -0,0 +1,8 @@ +from jsonrpclib.SimpleJSONRPCServer import SimpleJSONRPCServer + +def echo(x): + return x + +server = SimpleJSONRPCServer(('localhost',10000)) +server.register_function(echo) +server.serve_forever()
\ No newline at end of file |