- or download this
from SimpleXMLRPCServer import SimpleXMLRPCServer
from SimpleXMLRPCServer import SimpleXMLRPCRequestHandler
...
# Run the server's main loop
server.serve_forever()
- or download this
#!/usr/bin/perl
use strict;
...
perl client.pl
Pow: 8
- or download this
import xmlrpclib
s = xmlrpclib.ServerProxy('http://localhost:8000')
print "Pow: {}".format(s.pow(2, 3))
- or download this
#!/usr/bin/perl
use strict;
...
Frontier::Daemon->new( LocalPort => 8000,
methods => $methods)
or die "Couldn't start HTTP server: $!";