Rename gnunetconnector to gnunetrest

master
juga 2 years ago
parent e8c15e55de
commit 852138b8b6

@ -6,9 +6,9 @@ import gnunet
# make instance of connector,
# without arguments it defaults to localhost, port 7776
print("\nMaking instance of connector")
conn = gnunet.GNUnetConnector()
conn = gnunet.GNUnetRest()
# it is also possible to specify host and port, for example:
# conn=gnunet.GNUnetConnector("localhost","7771")
# conn=gnunet.GNUnetRest("localhost","7771")
# test if connection is possible
print("\nTesting Connector")

@ -3,7 +3,7 @@ import json
import socket
class GNUnetConnector:
class GNUnetRest:
def __init__(self, host="localhost", port="7776"):
self.host = host
self.port = port

Loading…
Cancel
Save