NCBI C++ ToolKit
|
Search Toolkit Book for CNetServerConnection
#include <connect/services/srv_connections.hpp>
Public Types | |
typedef SNetServerConnectionImpl * | TInstance |
Public Member Functions | |
CNetServerConnection (EVoid) | |
CNetServerConnection (SNetServerConnectionImpl *impl) | |
CNetServerConnection & | operator= (SNetServerConnectionImpl *impl) |
operator SNetServerConnectionImpl * () | |
operator const SNetServerConnectionImpl * () const | |
SNetServerConnectionImpl & | operator-- (int) |
const SNetServerConnectionImpl & | operator-- (int) const |
SNetServerConnectionImpl * | operator-> () |
const SNetServerConnectionImpl * | operator-> () 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< SNetServerConnectionImpl > | m_Impl |
Definition at line 54 of file srv_connections.hpp.
Definition at line 56 of file srv_connections.hpp.
|
inline |
Definition at line 56 of file srv_connections.hpp.
|
inline |
Definition at line 56 of file srv_connections.hpp.
|
inline |
Definition at line 56 of file srv_connections.hpp.
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().
|
inline |
Definition at line 56 of file srv_connections.hpp.
|
inline |
Definition at line 56 of file srv_connections.hpp.
|
inline |
Definition at line 56 of file srv_connections.hpp.
|
inline |
Definition at line 56 of file srv_connections.hpp.
|
inline |
Definition at line 56 of file srv_connections.hpp.
|
inline |
Definition at line 56 of file srv_connections.hpp.
|
inline |
Definition at line 56 of file srv_connections.hpp.
|
protected |
Definition at line 56 of file srv_connections.hpp.
Referenced by Exec().