Search Toolkit Book for SNetServerConnectionImpl
#include "srv_connections_impl.hpp"
(Private to src/connect/services
.)
Definition at line 108 of file srv_connections_impl.hpp.
◆ SNetServerConnectionImpl() SNetServerConnectionImpl::SNetServerConnectionImpl ( SNetServerImpl * pool ) inline ◆ ~SNetServerConnectionImpl() SNetServerConnectionImpl::~SNetServerConnectionImpl ( ) virtual ◆ Abort() void SNetServerConnectionImpl::Abort ( void ) ◆ Close() void SNetServerConnectionImpl::Close ( void ) ◆ DeleteThis() void SNetServerConnectionImpl::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 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 ( string & result, 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 string & line )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_ServerDefinition 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_SocketDefinition 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