This C++ library provides a unified interface for different types of communication modes (serial, TCP, and UDP). It is designed to be cross-platform, supporting both Windows and Linux systems. The library allows you to open, close, read from, and write to a connection. It also implements CRC16 checksum functionality.
- Establish connections in various modes: Serial, TCP, or UDP.
- Cross-platform support (Windows and Linux).
- Methods for opening and closing connections.
- Methods for reading from and writing to the connection.
- CRC16 checksum calculation.
- Control over the blocking/non-blocking nature of the socket.
To build the project run:
cd com_client
mkdir build && cd build
cmake .. && make
When the project have been built, you can run:
./com_client -h
to get the demonstration app usage.