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

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

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

Go to the source code of this file.

Namespaces

namespace  bcnp
 

Detailed Description

TCP transport adapter implementation for POSIX systems.

Provides reliable, stream-oriented BCNP transport over TCP sockets. Supports both server mode (listen/accept) and client mode (connect) with automatic reconnection, non-blocking I/O, and V3 schema handshake validation.

Note
This implementation is for Linux/POSIX systems only. For Windows, use a separate Winsock implementation.
See also
TcpPosixAdapter

Definition in file tcp_posix.cpp.