B2BITS FIX Antenna C++ 2.32.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Engine::BeforeMessageIsSentEvent Class Reference

The session is going to send messages pack to the socket (as a single call). More...

#include <B2BITS_SessionEvent.h>

Public Member Functions

 BeforeMessageIsSentEvent (int lastMsgSeqNum, std::size_t msgCount, std::size_t firstAttemptMsgCount, System::u64 currentTimeMs)
 Constructor.
 

Public Attributes

const std::size_t firstAttemptMsgCount_
 Messages count are going to be sent first time.
 
const int lastMsgSeqNum_
 Sequence number of the last message to send.
 
std::size_t msgCount_
 Total count of messages to be sent in this attempt.
 
System::u64 sendTimeMs_
 Desired sending time.
 

Detailed Description

The session is going to send messages pack to the socket (as a single call).

Constructor & Destructor Documentation

◆ BeforeMessageIsSentEvent()

Engine::BeforeMessageIsSentEvent::BeforeMessageIsSentEvent ( int lastMsgSeqNum,
std::size_t msgCount,
std::size_t firstAttemptMsgCount,
System::u64 currentTimeMs )
inline

Constructor.

Member Data Documentation

◆ firstAttemptMsgCount_

const std::size_t Engine::BeforeMessageIsSentEvent::firstAttemptMsgCount_

Messages count are going to be sent first time.

◆ lastMsgSeqNum_

const int Engine::BeforeMessageIsSentEvent::lastMsgSeqNum_

Sequence number of the last message to send.

◆ msgCount_

std::size_t Engine::BeforeMessageIsSentEvent::msgCount_
mutable

Total count of messages to be sent in this attempt.

If the value is changed to the smaller number,the current send event will be limited and initiated again later with the rest of the available messages.

◆ sendTimeMs_

System::u64 Engine::BeforeMessageIsSentEvent::sendTimeMs_
mutable

Desired sending time.

Initial value is equal to the current time in milliseconds since epoch 1970. If the value is changed to a time point in the future, the current send event will be interrupted and initiated again later.