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/structSNetServerConnectionImpl.html below:

NCBI C++ ToolKit: SNetServerConnectionImpl Struct Reference

Search Toolkit Book for SNetServerConnectionImpl

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

  SNetServerConnectionImpl (SNetServerImpl *pool)   virtual void  DeleteThis ()   Virtual method "deleting" this object. More...
  void  WriteLine (const string &line)   void  ReadCmdOutputLine (string &result, bool multiline_output)   void  Close ()   void  Abort ()   virtual  ~SNetServerConnectionImpl ()     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 108 of file srv_connections_impl.hpp.

◆ SNetServerConnectionImpl() SNetServerConnectionImpl::SNetServerConnectionImpl ( SNetServerImplpool ) inline ◆ ~SNetServerConnectionImpl() SNetServerConnectionImpl::~SNetServerConnectionImpl ( ) virtual ◆ Abort() void SNetServerConnectionImpl::Abort ( void  ) ◆ Close() void SNetServerConnectionImpl::Close ( void  ) ◆ DeleteThis() void SNetServerConnectionImpl::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 155 of file srv_connections.cpp.

References eIO_Open, eIO_Success, CAtomicCounter::Get(), CSocket::GetStatus(), SNetServerInPool::m_CurrentConnectionGeneration, SNetServerInPool::m_FreeConnectionListHead, SNetServerInPool::m_FreeConnectionListLock, SNetServerInPool::m_FreeConnectionListSize, m_Generation, m_NextFree, m_Server, SNetServerImpl::m_ServerInPool, m_Socket, and NULL.

◆ ReadCmdOutputLine() void SNetServerConnectionImpl::ReadCmdOutputLine ( stringresult, bool  multiline_output  )

Definition at line 183 of file srv_connections.cpp.

References Abort(), CONNSERV_THROW_FMT, eIO_Read, eIO_Success, eIO_Timeout, END_OF_MULTILINE_OUTPUT, CSocket::GetTimeout(), kEmptyStr, SNetServiceImpl::m_Listener, m_Server, SNetServerImpl::m_Service, m_Socket, NcbiTimeoutToMs(), NULL, NStr::ParseEscapes(), CSocket::ReadLine(), result, NStr::StartsWith(), string, STRING_LEN, WARNING_PREFIX, and WARNING_PREFIX_LEN.

Referenced by CNetCacheWriter::Close(), and SNetServerMultilineCmdOutputImpl::ReadLine().

◆ WriteLine() void SNetServerConnectionImpl::WriteLine ( const stringline )

Definition at line 260 of file srv_connections.cpp.

References Abort(), buf, CONNSERV_THROW_FMT, eIO_Success, IO_StatusStr(), len, m_Server, m_Socket, str(), and CSocket::Write().

Referenced by CNetCacheServerListener::OnConnected(), CNetScheduleServerListener::OnConnected(), and CNetScheduleSubmitter::SubmitJobBatch().

◆ m_Generation ◆ m_NextFree ◆ m_Server

Definition at line 125 of file srv_connections_impl.hpp.

Referenced by SNetICacheClientImpl::ChooseServerAndExec(), CNetCacheWriter::Close(), CNetCacheReader::CNetCacheReader(), DeleteThis(), SNetCacheAPIImpl::InitiateWriteCmd(), CNetCacheServerListener::OnConnected(), CNetScheduleServerListener::OnConnected(), CNetCacheReader::Read(), ReadCmdOutputLine(), CNetCacheReader::SocketRead(), SNetScheduleSubmitterImpl::SubmitJobImpl(), CNetCacheWriter::Transmit(), CNetCacheWriter::TransmitImpl(), WriteLine(), and SNetCacheAPIImpl::x_ExtractBlobAge().

◆ m_Socket CSocket SNetServerConnectionImpl::m_Socket

Definition at line 129 of file srv_connections_impl.hpp.

Referenced by Abort(), CNetCacheWriter::AbortConnection(), CNetCacheWriter::Close(), Close(), SNetStorageObjectRPC::SOState::Close(), DeleteThis(), CNetCacheWriter::EstablishConnection(), CJsonOverUTTPExecHandler::Exec(), CNetStorageServerListener::OnConnected(), CNetCacheReader::PendingCount(), ReadCmdOutputLine(), SNetStorageObjectRPC::SIState::ReadConfirmation(), SNetStorageObjectRPC::SIState::ReadSocket(), SNetServerConnectionImpl(), CNetCacheReader::SocketRead(), CNetCacheWriter::TransmitImpl(), SNetStorageObjectRPC::SOState::Write(), and WriteLine().

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