NCBI C++ ToolKit
Public Member Functions | Public Attributes
SNetServerConnectionImpl Struct Reference

Search Toolkit Book for SNetServerConnectionImpl

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

+ Inheritance diagram for SNetServerConnectionImpl:
+ Collaboration diagram for SNetServerConnectionImpl:

List of all members.

Public Member Functions

 SNetServerConnectionImpl (SNetServerImpl *pool)
virtual void DeleteThis ()
 Virtual method "deleting" this object.
void WriteLine (const string &line)
void ReadCmdOutputLine (string &result)
void Close ()
void Abort ()
virtual ~SNetServerConnectionImpl ()

Public Attributes

CNetServer m_Server
CAtomicCounter::TValue m_Generation
SNetServerConnectionImplm_NextFree
CSocket m_Socket

Detailed Description

Definition at line 72 of file srv_connections_impl.hpp.


Constructor & Destructor Documentation

Definition at line 104 of file srv_connections.cpp.

References eIO_Close, m_Socket, and CSocket::SetTimeout().

Definition at line 210 of file srv_connections.cpp.

References Close().


Member Function Documentation

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 114 of file srv_connections.cpp.

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


Member Data Documentation

Definition at line 89 of file srv_connections_impl.hpp.

Referenced by DeleteThis(), and SNetServerImpl::GetConnectionFromPool().


The documentation for this struct was generated from the following files:
Modified on Thu Jul 10 17:17:53 2014 by modify_doxy.py rev. 426318