IRSOL
C++ code implementing socket server for interacting with Baumer camera.
types.hpp File Reference

Core type definitions for networking, time handling, and protocol values used throughout the irsol library. More...

#include <chrono>
#include <cstddef>
#include <cstdint>
#include <sockpp/tcp_acceptor.h>
#include <sockpp/tcp_connector.h>
#include <string>
#include <variant>

Go to the source code of this file.

Namespaces

namespace  irsol
 
namespace  irsol::types
 Contains fundamental type aliases used throughout the irsol library.
 

Typedefs

Server-related Types

Type aliases for server networking components.

using irsol::types::port_t = uint16_t
 Represents a network port number. Typically used to specify TCP or UDP ports.
 
using irsol::types::client_id_t = std::string
 Represents a unique client identifier. Typically used to identify connected clients by string IDs.
 
using irsol::types::acceptor_t = sockpp::tcp_acceptor
 Alias for the TCP server socket acceptor type.
 
using irsol::types::connector_t = sockpp::tcp_connector
 Alias for the TCP client connector type.
 
using irsol::types::inet_address_t = sockpp::inet_address
 Alias for an IPv4/IPv6 internet address.
 
using irsol::types::socket_t = sockpp::tcp_socket
 Alias for a TCP socket.
 
using irsol::types::connection_result_t = sockpp::result<>
 Result type representing success or failure of a socket operation.
 
Time-related Types

Type aliases related to steady clock time points and durations.

using irsol::types::clock_t = std::chrono::steady_clock
 Alias for the steady clock type used throughout the library.
 
using irsol::types::timepoint_t = clock_t::time_point
 Alias for a point in time as defined by clock_t.
 
using irsol::types::duration_t = clock_t::duration
 Alias for a duration of time as defined by clock_t.
 
Protocol-related Types

Variant types representing values in the communication protocol.

using irsol::types::protocol_value_t = std::variant< int, double, std::string >
 Variant type representing protocol values that can be one of several types.
 
Serialization-related Types
using irsol::types::byte_t = std::byte
 Alias for a single byte used in serialization or binary data handling.
 

Detailed Description

Core type definitions for networking, time handling, and protocol values used throughout the irsol library.

This header defines fundamental type aliases related to server networking, time measurements, protocol data handling, and serialization, providing consistent and readable types across the codebase.

Definition in file types.hpp.