dnp3 (C++ API) 1.6.0
Loading...
Searching...
No Matches
dnp3::TcpSettings Class Reference

Global TCP/TLS configuration settings. More...

#include <dnp3.hpp>

Static Public Member Functions

static void disable_client_tcp_no_delay ()
 By default, TCP_NODELAY is set to true for all client TCP/TLS connections. This disables Nagle's algorithm causing the OS to send data written to socket ASAP without waiting. This reduces latency and is usually the appropriate setting for DNP3. This library always writes data in units of link-layer frames so the default setting might cause more TCP fragmentation if clients send requests that exceed a single link-layer frame. More...
 
static void disable_server_tcp_no_delay ()
 By default, TCP_NODELAY is set to true for all server TCP/TLS connections. This disables Nagle's algorithm causing the OS to send data written to socket ASAP without waiting. This reduces latency and is usually the appropriate setting for DNP3. This library always writes data in units of link-layer frames so the default setting might cause more TCP fragmentation if clients send requests that exceed a single link-layer frame. More...
 

Detailed Description

Global TCP/TLS configuration settings.

Member Function Documentation

◆ disable_client_tcp_no_delay()

static void dnp3::TcpSettings::disable_client_tcp_no_delay ( )
static

By default, TCP_NODELAY is set to true for all client TCP/TLS connections. This disables Nagle's algorithm causing the OS to send data written to socket ASAP without waiting. This reduces latency and is usually the appropriate setting for DNP3. This library always writes data in units of link-layer frames so the default setting might cause more TCP fragmentation if clients send requests that exceed a single link-layer frame.

Calling this function will enable Nagle's algorithm for all future outbound TCP connections.

This would typically be called prior to creating any TCP/TLS clients. In a future 2.0 release, this flag will likely be settable on a per-session basis but is done globally to preserve API compatibility

◆ disable_server_tcp_no_delay()

static void dnp3::TcpSettings::disable_server_tcp_no_delay ( )
static

By default, TCP_NODELAY is set to true for all server TCP/TLS connections. This disables Nagle's algorithm causing the OS to send data written to socket ASAP without waiting. This reduces latency and is usually the appropriate setting for DNP3. This library always writes data in units of link-layer frames so the default setting might cause more TCP fragmentation if clients send requests that exceed a single link-layer frame.

Calling this function will enable Nagle's algorithm for all future TCP/TLS connections accepted by servers

This would typically be called prior to creating any TCP/TLS clients. In a future 2.0 release, this flag will likely be settable on a per-session basis but is done globally to preserve API compatibility


The documentation for this class was generated from the following file: