A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/structSNetServerInPool.html below:

NCBI C++ ToolKit: SNetServerInPool Struct Reference

Search Toolkit Book for SNetServerInPool

#include "srv_connections_impl.hpp"
(Private to src/connect/services.)

  SNetServerInPool (SSocketAddress address, INetServerProperties *server_properties, SThrottleParams throttle_params)   virtual void  DeleteThis ()   Virtual method "deleting" this object. More...
  virtual  ~SNetServerInPool ()   void  TryExec (SNetServerImpl *server, INetServerExecHandler &handler, const STimeout *timeout)   CNetServerConnection  GetConnectionFromPool (SNetServerImpl *server)   CNetServerConnection  Connect (SNetServerImpl *server, const STimeout *timeout)     CObject (void)   Constructor. More...
    CObject (const CObject &src)   Copy constructor. More...
  virtual  ~CObject (void)   Destructor. More...
  CObjectoperator= (const CObject &src) THROWS_NONE   Assignment operator. More...
  bool  CanBeDeleted (void) const THROWS_NONE   Check if object can be deleted. More...
  bool  IsAllocatedInPool (void) const THROWS_NONE   Check if object is allocated in memory pool (not system heap) More...
  bool  Referenced (void) const THROWS_NONE   Check if object is referenced. More...
  bool  ReferencedOnlyOnce (void) const THROWS_NONE   Check if object is referenced only once. More...
  void  AddReference (void) const   Add reference to object. More...
  void  RemoveReference (void) const   Remove reference to object. More...
  void  ReleaseReference (void) const   Remove reference without deleting object. More...
  virtual void  DoNotDeleteThisObject (void)   Mark this object as not allocated in heap – do not delete this object. More...
  virtual void  DoDeleteThisObject (void)   Mark this object as allocated in heap – object can be deleted. More...
  void *  operator new (size_t size)   Define new operator for memory allocation. More...
  void *  operator new[] (size_t size)   Define new[] operator for 'array' memory allocation. More...
  void  operator delete (void *ptr)   Define delete operator for memory deallocation. More...
  void  operator delete[] (void *ptr)   Define delete[] operator for memory deallocation. More...
  void *  operator new (size_t size, void *place)   Define new operator. More...
  void  operator delete (void *ptr, void *place)   Define delete operator. More...
  void *  operator new (size_t size, CObjectMemoryPool *place)   Define new operator using memory pool. More...
  void  operator delete (void *ptr, CObjectMemoryPool *place)   Define delete operator. More...
  virtual void  DebugDump (CDebugDumpContext ddc, unsigned int depth) const   Define method for dumping debug information. More...
    CDebugDumpable (void)   virtual  ~CDebugDumpable (void)   void  DebugDumpText (ostream &out, const string &bundle, unsigned int depth) const   void  DebugDumpFormat (CDebugDumpFormatter &ddf, const string &bundle, unsigned int depth) const   void  DumpToConsole (void) const  

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  ) virtual

Virtual 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_Address

Definition 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_ThrottleStats

The 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