|
unilink
0.4.3
A simple C++ library for unified async communication
|
Unified Builder for creating all types of wrapper instances. More...
#include <unified_builder.hpp>
Static Public Member Functions | |
| static TcpServerBuilder | tcp_server (uint16_t port) |
| Create a TcpServer builder. More... | |
| static TcpClientBuilder | tcp_client (const std::string &host, uint16_t port) |
| Create a TcpClient builder. More... | |
| static SerialBuilder | serial (const std::string &device, uint32_t baud_rate) |
| Create a Serial builder. More... | |
| static UdpBuilder | udp (uint16_t local_port) |
| Create a UDP builder. More... | |
Unified Builder for creating all types of wrapper instances.
Provides a single entry point for creating TcpServer, TcpClient, and Serial wrapper instances using a consistent fluent API pattern.
Definition at line 37 of file unified_builder.hpp.
|
static |
Create a Serial builder.
| device | The serial device path (e.g., "/dev/ttyUSB0") |
| baud_rate | The baud rate for serial communication |
Definition at line 28 of file unified_builder.cc.
|
static |
Create a TcpClient builder.
| host | The host address to connect to |
| port | The port number to connect to |
Definition at line 24 of file unified_builder.cc.
|
static |
Create a TcpServer builder.
| port | The port number for the server |
Definition at line 22 of file unified_builder.cc.
|
static |
Create a UDP builder.
| local_port | The local port to bind |
Definition at line 32 of file unified_builder.cc.