B2BITS FIX Antenna C++ 2.33.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Bats::UDPParams Struct Reference

Parameters used for UDP sockets. More...

#include <B2BITS_BatsApplication.h>

Public Member Functions

 UDPParams ()
 

Public Attributes

int recvBufferSize
 Receive socket buffer size
Default value: -1 - use OS default.
 
int recvTimeoutUS
 Receive timeout, usec
Default value: 0.
 

Detailed Description

Parameters used for UDP sockets.

Constructor & Destructor Documentation

◆ UDPParams()

Bats::UDPParams::UDPParams ( )
inline

Member Data Documentation

◆ recvBufferSize

int Bats::UDPParams::recvBufferSize

Receive socket buffer size
Default value: -1 - use OS default.

◆ recvTimeoutUS

int Bats::UDPParams::recvTimeoutUS

Receive timeout, usec
Default value: 0.

This parameter is used when reading from IncrementReaderType::DedicatedThread or IncrementReaderType::ThreadPool. Possible values are:

  • 0 - no timeout, use non blocking read consuming 100% CPU (each thread in case of pool) to achieve the lowest possible latency
  • >0 - use blocking read with timeout
  • <1 - use blocking read with use OS default timeout