tdslite latest
C++ API reference
Loading...
Searching...
No Matches
tdsl::net Namespace Reference

Classes

struct  network_io_base
 Base network type. More...
 
struct  network_io_contract
 Validator metaclass for ensuring that network implementations has the required functions and properties. More...
 
struct  tdsl_asio_tls_options
 TLS settings of tdsl_netimpl_asio_tls. More...
 
struct  tdsl_esp_tls_options
 TLS settings of tdsl_netimpl_esp_tls. More...
 
struct  tdsl_netimpl_arduino
 Synchronous networking code for Arduino-like devices. More...
 
struct  tdsl_netimpl_asio
 Synchronous ASIO networking code for tdslite. More...
 
struct  tdsl_netimpl_asio_tls
 Synchronous ASIO networking code for tdslite, with TLS. More...
 
struct  tdsl_netimpl_esp_tls
 Synchronous networking code for ESP-IDF, with TLS through esp-tls. More...
 
struct  tdsl_netimpl_socket
 Synchronous networking code based on BSD sockets. More...
 

Variables

constexpr tdsl::size_t k_max_tls_record_payload = 16384
 The most data mbedTLS puts into one outgoing TLS record.
 

Variable Documentation

◆ k_max_tls_record_payload

constexpr tdsl::size_t tdsl::net::k_max_tls_record_payload = 16384
constexpr

The most data mbedTLS puts into one outgoing TLS record.

A larger write is split into several records, and SQL Server drops a strict connection when a TDS packet arrives in more than one record, so a TDS packet must not be larger than this. The default TDS packet size (4096) fits mbedTLS's default.