ud3tn/python-ud3tn-utils
Felix Walter c44ac9c936 python-ud3tn-utils: BDM: Allow for enabling keepalive
When connecting to µD3TN with the client behind a NAT gateway, the connection
may be dropped silently after a while if no data is flowing from µD3TN to the
AAP 2.0 subscriber (i.e., if no bundles are received for a while). µD3TN
allows us to set a keepalive interval to prevent this, which was however
only exposed by aap2-receive and aap2-ping previously. As the BDMs may
also hold long-living receiving connections, this capability is added to
them as well.

Signed-off-by: Felix Walter <felix.walter@d3tn.com>
2024-10-02 07:49:46 +02:00
..
ud3tn_utils python-ud3tn-utils: BDM: Allow for enabling keepalive 2024-10-02 07:49:46 +02:00
.gitignore Prepare PyPi packages 2020-11-19 12:38:39 +01:00
LICENSE Prepare PyPi packages 2020-11-19 12:38:39 +01:00
pyproject.toml Bump version to v0.14.0 and update CHANGELOG and dates 2024-10-01 09:27:50 +02:00
README.md Prepare PyPi packages 2020-11-19 12:38:39 +01:00
requirements.txt Bump version to v0.14.0 and update CHANGELOG and dates 2024-10-01 09:27:50 +02:00

python-uD3TN-utils

The Python package uD3TN-utils is a utility library to simplify the interaction with the uD3TN daemon within python applications.

The included AAPClient enables user-friendly communication with the uD3TN daemon via local or remote sockets using the Application Agent Protocol (AAP). Besides sending and receiving bundles, it is also possible to change the configuration of the uD3TN daemon via AAP messages.

Installation

From source:

git clone https://gitlab.com/d3tn/ud3tn
cd python-ud3tn-utils
python setup.py install

From PyPi directly:

pip install ud3tn-utils

Examples

from ud3tn_utils.aap import AAPUnixClient

with AAPUnixClient() as aap_client:
    aap_client.register()
    aap_client.send_str(aap_client.eid(), "Hello World")
    print(aap_client.receive())

Development

pyD3TN is maintained as part of the µD3TN project and follows its development processes. Please see the µD3TN repository for the code and further information.