deluge/sandbox/xmlrpc_launcher.py
2006-12-06 02:06:40 +00:00

13 lines
319 B
Python
Executable File

#!/usr/bin/env python2.4
import xmlrpclib
try:
# Try and connect to current instance
proxy = xmlrpclib.ServerProxy('http://localhost:8888')
print proxy.open_file('server already exists')
except:
# if connecting failed
print "couldn't connect to socket"
import xmlrpc_simple_server
xmlrpc_simple_server.Server()