TEC
A lightweight C++ library enabling safe, efficient execution in multithreaded and concurrent systems.
Loading...
Searching...
No Matches
tec_socket.hpp File Reference

Generic BSD socket parameters and helpers. More...

#include <cstddef>
#include <cstdio>
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include <netdb.h>
#include <cstring>
#include <thread>
#include "tec/tec_def.hpp"
#include "tec/tec_trace.hpp"
#include "tec/tec_status.hpp"
#include "tec/tec_memfile.hpp"
#include "tec/net/tec_compression.hpp"

Go to the source code of this file.

Classes

struct  tec::SocketParams
 Common parameters used for both client and server socket configuration. More...
 
struct  tec::SocketClientParams
 Parameters specific to client-side socket connections. More...
 
struct  tec::SocketServerParams
 Parameters specific to server-side socket configuration. More...
 
struct  tec::SocketCharStreamIn
 Input descriptor for character stream mode. More...
 
struct  tec::SocketCharStreamOut
 Output descriptor for character stream mode. More...
 
struct  tec::Socket
 Lightweight wrapper around a connected socket file descriptor. More...
 

Macros

#define _POSIX_C_SOURCE   200809L
 

Detailed Description

Generic BSD socket parameters and helpers.

Note
For BSD, macOS, Linux.
Author
The Emacs Cat
Date
2025-11-10