]> sigrok.org Git - libsigrok.git/commit
tcp: introduce common support code for TCP socket communication
authorGerhard Sittig <redacted>
Sun, 24 Sep 2023 08:23:15 +0000 (10:23 +0200)
committerGerhard Sittig <redacted>
Mon, 25 Sep 2023 17:30:18 +0000 (19:30 +0200)
commitfcab496c12b2b94e85513c61513a24dbd9d6698a
tree082667e818597a9d4ebb7ed790a4ff6cb1fbdcfb
parent395ac73eadfdb7a8e03107172dcdbf5d9176a1fa
tcp: introduce common support code for TCP socket communication

It appears that so far only SCPI and the Beagleboard have supported
communication across TCP sockets. And both have locally open coded
the corresponding logic.

Introduce common support for TCP communication. This implementation
provides simple new/free, connect/disconnect, read/write (including
non-blocking reads), source add/remove calls, and keeps the API under
the sr_tcp_ prefix.

This commit introduces common code, but does not adjust callers.
Makefile.am
src/libsigrok-internal.h
src/tcp.c [new file with mode: 0644]