Switch to use a connection oriented datagram based protocol, i.e. `SOCK_SEQPACKET`, instead of `SOCK_DGRAM`. It sill preserves message boundaries, but since it is connection oriented the client nor the server do not need to specify the destination addresses of the peer in sendmsg/recvmesg. Moreover, the host will be able to send messages to the client, even if the latter is sandboxed with a separate network namespace. In the `SOCK_DRAM` case the auto-bound address of the client would not be visible to the host and thus sending messages would to it would fail. Adapt the jsoncomm tests as well as `BaseAPI`. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_api.py | ||
| test_monitor.py | ||
| test_objectstore.py | ||
| test_osbuild.py | ||
| test_util_ctx.py | ||
| test_util_jsoncomm.py | ||
| test_util_linux.py | ||
| test_util_osrelease.py | ||
| test_util_ostree.py | ||
| test_util_rmrf.py | ||
| test_util_selinux.py | ||