summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rwxr-xr-xpython/rvi_service.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/python/rvi_service.py b/python/rvi_service.py
index 3c08417..36817ce 100755
--- a/python/rvi_service.py
+++ b/python/rvi_service.py
@@ -49,21 +49,7 @@ def service_invoked(**args):
sys.stdout.flush()
return ['ok']
-def services_available(services):
- print
- print "Services available: ", services
- sys.stdout.write("Press enter to quit: ")
- sys.stdout.flush()
- return ['ok']
-
-def services_unavailable(services):
- print
- print "Services not available: ", services
-
- sys.stdout.write("Press enter to quit: ")
- sys.stdout.flush()
- return ['ok']
if len(sys.argv) != 3:
usage()
@@ -71,7 +57,6 @@ if len(sys.argv) != 3:
# Grab the URL to use
[ progname, rvi_node_url, service_name ] = sys.argv
-
# Setup a connection to the local RVI node
rvi = RVI(rvi_node_url)
@@ -85,10 +70,6 @@ rvi.start_serve_thread()
#
full_service_name = rvi.register_service(service_name, service_invoked)
-# Tie callbacks to be invoked as the RVI node reports to us
-# about other services being available.
-rvi.set_services_available_callback(services_available)
-rvi.set_services_unavailable_callback(services_unavailable)
print "RVI General Service."
print "RVI node URL: ", rvi_node_url