You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.
from xmlrpc.server import SimpleXMLRPCServer
def is_even(n):
return n % 2 == 0
server = SimpleXMLRPCServer(("localhost", 8000))
print("Listening on port 8000...")
server.register_function(is_even, "is_even")
server.serve_forever()
And could I build a clojure RPC client to call is_even at localhost:8000
The text was updated successfully, but these errors were encountered:
You certainly can use this library to call RPC server functions implemented in other languages.
However, you appear to be using XML-RPC in Python, rather than JSON-RPC. This won't work. You will either need an XML-RPC client library for Clojure, or a JSON-RPC server library for python.
Hi there!
You certainly can use this library to call RPC server functions
implemented in other languages.
However, you appear to be using XML-RPC in Python, rather than JSON-RPC.
This won't work. You will either need an XML-RPC client library for
Clojure, or a JSON-RPC server library for python.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA52C3V5PFADGLF26AX44R3P4KNNRANCNFSM4H24EAWQ>
.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
For example, I wrote in serv.py as follows:
And could I build a clojure RPC client to call
is_even
atlocalhost:8000
The text was updated successfully, but these errors were encountered: