Reticulum/docs/source/reference.rst

214 lines
3.1 KiB
ReStructuredText
Raw Permalink Normal View History

2022-09-30 13:09:10 +02:00
:tocdepth: 4
2021-05-16 21:58:11 +02:00
.. _api-main:
2021-05-16 17:36:50 +02:00
*************
API Reference
*************
2022-09-30 18:43:04 +02:00
Communication over Reticulum networks is achieved by using a simple set of classes exposed by the RNS API.
This chapter lists and explains all classes exposed by the Reticulum Network Stack API, along with their method signatures and usage. It can be used as a reference while writing applications that utilise Reticulum, or it can be read in entirity to gain an understanding of the complete functionality of RNS from a developers perspective.
2021-05-16 21:58:11 +02:00
.. _api-reticulum:
2021-05-16 17:36:50 +02:00
2022-09-30 13:09:10 +02:00
.. only:: html
|start-h3| Reticulum |end-h3|
.. only:: latex
Reticulum
---------
2021-05-16 17:36:50 +02:00
2021-05-16 21:58:11 +02:00
.. autoclass:: RNS.Reticulum
:members:
.. _api-identity:
2021-05-16 17:36:50 +02:00
2022-09-30 13:09:10 +02:00
.. only:: html
|start-h3| Identity |end-h3|
.. only:: latex
Identity
--------
2021-05-16 17:36:50 +02:00
2021-05-16 21:58:11 +02:00
.. autoclass:: RNS.Identity
:members:
.. _api-destination:
2021-05-16 17:36:50 +02:00
2022-09-30 13:09:10 +02:00
.. only:: html
|start-h3| Destination |end-h3|
.. only:: latex
Destination
-----------
2021-05-16 17:36:50 +02:00
2021-05-16 21:58:11 +02:00
.. autoclass:: RNS.Destination
:members:
.. _api-packet:
2021-05-16 17:36:50 +02:00
2022-09-30 13:09:10 +02:00
.. only:: html
|start-h3| Packet |end-h3|
.. only:: latex
Packet
------
2021-05-16 17:36:50 +02:00
2021-09-02 20:35:42 +02:00
.. autoclass:: RNS.Packet(destination, data, create_receipt = True)
2021-05-16 21:58:11 +02:00
:members:
2021-05-16 23:13:56 +02:00
.. _api-packetreceipt:
2022-09-30 13:09:10 +02:00
.. only:: html
|start-h3| Packet Receipt |end-h3|
.. only:: latex
Packet Receipt
--------------
2021-05-16 23:13:56 +02:00
2021-09-02 20:35:42 +02:00
.. autoclass:: RNS.PacketReceipt()
2021-05-16 23:13:56 +02:00
:members:
2021-05-16 21:58:11 +02:00
.. _api-link:
2021-05-16 17:36:50 +02:00
2022-09-30 13:09:10 +02:00
.. only:: html
|start-h3| Link |end-h3|
.. only:: latex
Link
----
2021-05-16 17:36:50 +02:00
2021-09-02 20:35:42 +02:00
.. autoclass:: RNS.Link(destination, established_callback=None, closed_callback = None)
:members:
.. _api-requestreceipt:
2022-09-30 13:09:10 +02:00
.. only:: html
|start-h3| Request Receipt |end-h3|
.. only:: latex
Request Receipt
---------------
2021-09-02 20:35:42 +02:00
.. autoclass:: RNS.RequestReceipt()
2021-05-16 21:58:11 +02:00
:members:
.. _api-resource:
2021-05-16 17:36:50 +02:00
2022-09-30 13:09:10 +02:00
.. only:: html
|start-h3| Resource |end-h3|
.. only:: latex
Resource
--------
2021-05-16 17:36:50 +02:00
2021-09-02 20:35:42 +02:00
.. autoclass:: RNS.Resource(data, link, advertise=True, auto_compress=True, callback=None, progress_callback=None, timeout=None)
2021-05-16 21:58:11 +02:00
:members:
2023-02-28 02:05:25 +01:00
.. _api-channel:
.. only:: html
|start-h3| Channel |end-h3|
.. only:: latex
Channel
2023-03-02 12:47:55 +01:00
-------
2023-02-28 02:05:25 +01:00
2023-02-28 04:10:28 +01:00
.. autoclass:: RNS.Channel.Channel()
2023-02-28 02:05:25 +01:00
:members:
.. _api-messsagebase:
.. only:: html
|start-h3| MessageBase |end-h3|
.. only:: latex
MessageBase
2023-03-02 12:47:55 +01:00
-----------
2023-02-28 02:05:25 +01:00
.. autoclass:: RNS.MessageBase()
:members:
.. _api-buffer:
.. only:: html
|start-h3| Buffer |end-h3|
.. only:: latex
Buffer
------
.. autoclass:: RNS.Buffer
:members:
.. _api-rawchannelreader:
.. only:: html
|start-h3| RawChannelReader |end-h3|
.. only:: latex
RawChannelReader
----------------
.. autoclass:: RNS.RawChannelReader
:members: __init__, add_ready_callback, remove_ready_callback
.. _api-rawchannelwriter:
.. only:: html
|start-h3| RawChannelWriter |end-h3|
.. only:: latex
RawChannelWriter
----------------
.. autoclass:: RNS.RawChannelWriter
:members: __init__
2021-05-16 21:58:11 +02:00
.. _api-transport:
2021-05-16 17:36:50 +02:00
2022-09-30 13:09:10 +02:00
.. only:: html
|start-h3| Transport |end-h3|
.. only:: latex
Transport
---------
2021-05-16 17:36:50 +02:00
2021-05-16 21:58:11 +02:00
.. autoclass:: RNS.Transport
2022-09-30 13:09:10 +02:00
:members:
.. |start-h3| raw:: html
<h3>
.. |end-h3| raw:: html
</h3>