Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,19 @@ Then, connect to the running cjdns instance. There are two ways to do this. The

.. code:: python

cjdns = cjdns.connectWithAdminInfo()
connection = cjdns.connectWithAdminInfo()

Or, if you have the IP, port and password and wish to ignore the ``~/.cjdnsadmin`` file for whatever reason:

.. code:: python

cjdns = cjdns.connect(ip, port, password)
connection = cjdns.connect(ip, port, password)

Once connected, you may call any of the `cjdns admin interface functions <https://github.com/cjdelisle/cjdns/blob/master/admin/README.md#cjdns-functions>`_:

.. code:: python

peerStats = cjdns.InterfaceController_peerStats()
peerStats = connection.InterfaceController_peerStats()

Finally, there is a helper function that allows one to convert a cjdns public key into an IP address:

Expand Down