BCNP 3.2.1
Batched Command Network Protocol
Loading...
Searching...
No Matches
udp_posix.cpp File Reference

UDP transport adapter implementation for POSIX systems. More...

#include "bcnp/transport/udp_posix.h"
#include <arpa/inet.h>
#include <cerrno>
#include <cstring>
#include <fcntl.h>
#include <iostream>
#include <sys/socket.h>
#include <unistd.h>
Include dependency graph for udp_posix.cpp:

Go to the source code of this file.

Namespaces

namespace  bcnp
 

Detailed Description

UDP transport adapter implementation for POSIX systems.

Provides connectionless BCNP transport over UDP sockets with optional peer locking for security. Supports V3 protocol handshake with schema hash validation for peer pairing.

Note
UDP does not guarantee delivery or ordering. Use TCP for reliable transport. UDP is suitable for low-latency telemetry where occasional packet loss is acceptable.
See also
UdpPosixAdapter

Definition in file udp_posix.cpp.