main
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"
Description
Languages
C++
93.4%
CMake
4%
C
2.6%