Search Toolkit Book for SNetServerInPool
#include "srv_connections_impl.hpp"
(Private to src/connect/services
.)
Definition at line 199 of file srv_connections_impl.hpp.
◆ SNetServerInPool()Definition at line 313 of file srv_connections.cpp.
References SSocketAddress::host, CSocketAPI::HostToNetShort(), m_Address, m_CurrentConnectionGeneration, m_FreeConnectionListHead, m_FreeConnectionListSize, m_RankBase, CSocketAPI::NetToHostLong(), NULL, SSocketAddress::port, and CAtomicCounter::Set().
◆ ~SNetServerInPool() SNetServerInPool::~SNetServerInPool ( ) virtual ◆ Connect()Definition at line 536 of file srv_connections.cpp.
References conn, SNetServiceXSiteAPI::ConnectXSite(), eIO_ReadWrite, eOff, eOn, m_Address, SNetServerPoolImpl::m_CommTimeout, SNetServerPoolImpl::m_ConnTimeout, SNetServiceImpl::m_Listener, m_ServerPool, SNetServerImpl::m_Service, SNetServiceImpl::m_ServiceName, and INetServerConnectionListener::OnConnected().
Referenced by TryExec().
◆ DeleteThis() void SNetServerInPool::DeleteThis ( void ) virtualVirtual method "deleting" this object.
Method is called whenever by all other indicators this object should be deleted. These indicators are: last reference to the object is removed, object created on heap and method DoNotDeleteThisObject() was not called. Default implementation actually deletes the object, but derived classes are free to do whatever they want (e.g. if they know that they are allocated at some pool they should return themselves to this pool).
Reimplemented from CObject.
Definition at line 332 of file srv_connections.cpp.
References g(), SNetServerPoolImpl::m_ServerMutex, m_ServerPool, NULL, and CObject::Referenced().
◆ GetConnectionFromPool()Definition at line 454 of file srv_connections.cpp.
References conn, eIO_Open, eIO_ReadWrite, eIO_Success, eIO_Write, CAtomicCounter::Get(), m_CurrentConnectionGeneration, m_FreeConnectionListHead, m_FreeConnectionListLock, m_FreeConnectionListSize, NULL, CGuard< Resource, Lock, Unlock, ReportExceptions >::Release(), SSOCK_Poll::revent, s_ZeroTimeout, and SOCK_Poll().
Referenced by TryExec().
◆ TryExec() ◆ m_AddressDefinition at line 224 of file srv_connections_impl.hpp.
Referenced by SThrottleStats::Adjust(), SThrottleStats::Check(), Connect(), CNetScheduleGetJobImpl< TImpl >::MoveToImmediateActions(), CNetStorageServerListener::OnErrorImpl(), CNetCacheServerListener::OnWarningImpl(), CNetScheduleServerListener::OnWarningImpl(), CNetStorageServerListener::OnWarningImpl(), CNetCacheReader::Read(), SNetServerInPool(), and SNetScheduleAPIImpl::x_ClearNode().
◆ m_CurrentConnectionGeneration ◆ m_FreeConnectionListHead ◆ m_FreeConnectionListLock CFastMutex SNetServerInPool::m_FreeConnectionListLock ◆ m_FreeConnectionListSize int SNetServerInPool::m_FreeConnectionListSize ◆ m_RankBase Uint4 SNetServerInPool::m_RankBase ◆ m_ServerPool ◆ m_ServerProperties ◆ m_ThrottleStatsThe documentation for this struct was generated from the following files:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4