NCBI C++ ToolKit
Public Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
SNetServerImpl::SConnectDeadline Struct Reference

Search Toolkit Book for SNetServerImpl::SConnectDeadline

+ Collaboration diagram for SNetServerImpl::SConnectDeadline:

Public Member Functions

 SConnectDeadline (const STimeout &conn_timeout)
 
const STimeoutGetRemaining () const
 
bool IsExpired ()
 
CTimeout GetTotal () const
 

Static Private Member Functions

static STimeout Min (const STimeout &t1, const STimeout &t2)
 

Private Attributes

STimeout try_timeout
 
CTimeout total_timeout
 
CDeadline deadline
 

Static Private Attributes

static const STimeout kMaxTryTimeout = {1, 250 * 1000}
 

Detailed Description

Definition at line 491 of file srv_connections.cpp.

Constructor & Destructor Documentation

◆ SConnectDeadline()

SNetServerImpl::SConnectDeadline::SConnectDeadline ( const STimeout conn_timeout)
inline

Definition at line 493 of file srv_connections.cpp.

Member Function Documentation

◆ GetRemaining()

const STimeout* SNetServerImpl::SConnectDeadline::GetRemaining ( ) const
inline

Definition at line 499 of file srv_connections.cpp.

References try_timeout.

Referenced by SNetServerImpl::ConnectImpl().

◆ GetTotal()

CTimeout SNetServerImpl::SConnectDeadline::GetTotal ( void  ) const
inline

Definition at line 512 of file srv_connections.cpp.

References total_timeout.

Referenced by SNetServerImpl::ConnectImpl().

◆ IsExpired()

bool SNetServerImpl::SConnectDeadline::IsExpired ( void  )
inline

◆ Min()

static STimeout SNetServerImpl::SConnectDeadline::Min ( const STimeout t1,
const STimeout t2 
)
inlinestaticprivate

Definition at line 515 of file srv_connections.cpp.

References STimeoutTag::sec, and STimeoutTag::usec.

Referenced by IsExpired().

Member Data Documentation

◆ deadline

CDeadline SNetServerImpl::SConnectDeadline::deadline
private

Definition at line 525 of file srv_connections.cpp.

Referenced by IsExpired().

◆ kMaxTryTimeout

const STimeout SNetServerImpl::SConnectDeadline::kMaxTryTimeout = {1, 250 * 1000}
staticprivate

Definition at line 527 of file srv_connections.cpp.

Referenced by IsExpired().

◆ total_timeout

CTimeout SNetServerImpl::SConnectDeadline::total_timeout
private

Definition at line 524 of file srv_connections.cpp.

Referenced by GetTotal().

◆ try_timeout

STimeout SNetServerImpl::SConnectDeadline::try_timeout
private

Definition at line 523 of file srv_connections.cpp.

Referenced by GetRemaining(), and IsExpired().


The documentation for this struct was generated from the following file:
Modified on Wed Jun 12 11:16:29 2024 by modify_doxy.py rev. 669887