NCBI C++ ToolKit
Public Types | Public Member Functions | Protected Attributes | List of all members
CNetServerConnection Class Reference

Search Toolkit Book for CNetServerConnection

#include <connect/services/srv_connections.hpp>

+ Collaboration diagram for CNetServerConnection:

Public Types

typedef SNetServerConnectionImplTInstance
 

Public Member Functions

 CNetServerConnection (EVoid)
 
 CNetServerConnection (SNetServerConnectionImpl *impl)
 
CNetServerConnectionoperator= (SNetServerConnectionImpl *impl)
 
 operator SNetServerConnectionImpl * ()
 
 operator const SNetServerConnectionImpl * () const
 
SNetServerConnectionImploperator-- (int)
 
const SNetServerConnectionImploperator-- (int) const
 
SNetServerConnectionImploperator-> ()
 
const SNetServerConnectionImploperator-> () const
 
 CNetServerConnection ()
 
string Exec (const string &cmd, bool multiline_output=false, const STimeout *timeout=NULL)
 Execute remote command 'cmd', wait for the reply, check that it starts with 'OK:', and return the remaining characters of the reply as a string. More...
 

Protected Attributes

CNetRef< SNetServerConnectionImplm_Impl
 

Detailed Description

Definition at line 54 of file srv_connections.hpp.

Member Typedef Documentation

◆ TInstance

Definition at line 56 of file srv_connections.hpp.

Constructor & Destructor Documentation

◆ CNetServerConnection() [1/3]

CNetServerConnection::CNetServerConnection ( EVoid  )
inline

Definition at line 56 of file srv_connections.hpp.

◆ CNetServerConnection() [2/3]

CNetServerConnection::CNetServerConnection ( SNetServerConnectionImpl impl)
inline

Definition at line 56 of file srv_connections.hpp.

◆ CNetServerConnection() [3/3]

CNetServerConnection::CNetServerConnection ( )
inline

Definition at line 56 of file srv_connections.hpp.

Member Function Documentation

◆ Exec()

string CNetServerConnection::Exec ( const string cmd,
bool  multiline_output = false,
const STimeout timeout = NULL 
)

Execute remote command 'cmd', wait for the reply, check that it starts with 'OK:', and return the remaining characters of the reply as a string.

Definition at line 284 of file srv_connections.cpp.

References cmd, m_Impl, output, and val.

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

◆ operator const SNetServerConnectionImpl *()

CNetServerConnection::operator const SNetServerConnectionImpl * ( ) const
inline

Definition at line 56 of file srv_connections.hpp.

◆ operator SNetServerConnectionImpl *()

CNetServerConnection::operator SNetServerConnectionImpl * ( )
inline

Definition at line 56 of file srv_connections.hpp.

◆ operator--() [1/2]

SNetServerConnectionImpl& CNetServerConnection::operator-- ( int  )
inline

Definition at line 56 of file srv_connections.hpp.

◆ operator--() [2/2]

const SNetServerConnectionImpl& CNetServerConnection::operator-- ( int  ) const
inline

Definition at line 56 of file srv_connections.hpp.

◆ operator->() [1/2]

SNetServerConnectionImpl* CNetServerConnection::operator-> ( void  )
inline

Definition at line 56 of file srv_connections.hpp.

◆ operator->() [2/2]

const SNetServerConnectionImpl* CNetServerConnection::operator-> ( void  ) const
inline

Definition at line 56 of file srv_connections.hpp.

◆ operator=()

CNetServerConnection& CNetServerConnection::operator= ( SNetServerConnectionImpl impl)
inline

Definition at line 56 of file srv_connections.hpp.

Member Data Documentation

◆ m_Impl

CNetRef< SNetServerConnectionImpl > CNetServerConnection::m_Impl
protected

Definition at line 56 of file srv_connections.hpp.

Referenced by Exec().


The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:58:32 2024 by modify_doxy.py rev. 669887