Files
tcpip/README.md
T
wall_e 82fdf65eed
Test And Build / Format (push) Has been cancelled
Test And Build / Lint (push) Has been cancelled
only builds executable if BUILD_FRONTEND specified
2025-09-11 13:53:26 +02:00

786 B

Midas TCPIP Bus Driver

This repository contains bus driver code for interacting with devices via TCPIP, with integrated ETS logout.

Building Library

cmake -S . -B "./build" -DBUILD_FRONTEND=ON
cmake --build "./build" --clean-first -- -j

Or just include this as a subdirectory of your CMake Project.

add_subdirectory(<path-to-tcpip-directory>)

target_link_libraries(
    <executable-name>
    PRIVATE
    tcpip
    <other-libraries-as-necessary>
)

Running Tests

After building, in one terminal start the nmap-ncat version of netcat as follows:

nc -e /bin/cat -lk 9070

This just starts a server listening on port 9070 that sends back every byte it receives.

You can then run the test executable:

"./build/test_tcpip"