|
TEC
A lightweight C++ library enabling safe, efficient execution in multithreaded and concurrent systems.
|
Definition of the SocketClientNd class template. More...
#include <any>#include <cerrno>#include <cstdlib>#include <sys/types.h>#include <sys/socket.h>#include <netdb.h>#include "tec/tec_def.hpp"#include "tec/tec_trace.hpp"#include "tec/tec_status.hpp"#include "tec/tec_message.hpp"#include "tec/net/tec_net_data.hpp"#include "tec/net/tec_socket_nd.hpp"#include "tec/net/tec_socket_client.hpp"#include "tec/net/tec_nd_compress.hpp"Go to the source code of this file.
Classes | |
| class | tec::SocketClientNd< TParams > |
| Templated client socket actor for NetData stream handling. More... | |
Macros | |
| #define | _POSIX_C_SOURCE 200809L |
Definition of the SocketClientNd class template.
This file contains the implementation of the SocketClientNd class, which is a specialized extension of the SocketClient class for handling NetData streams. It adds support for sending and receiving NetData objects, including preprocessing (e.g., compression) and postprocessing (e.g., uncompression). The class uses the same parameter template as SocketClient to maintain configuration consistency.
SocketClientNd overrides key methods to process NetData requests and provides virtual hooks for customization of send/receive operations and data processing. It integrates compression based on parameters and is designed for efficient binary data transmission over sockets.