Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > 810b0d4df5d15a7b0a053293854558b7 > files > 48

ne7ssh-doc-1.3.2-15.fc18.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>ne7ssh.kdevelop: ne7ssh_connection Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.9 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>ne7ssh_connection Class Reference</h1><!-- doxytag: class="ne7ssh_connection" --><code>#include &lt;<a class="el" href="ne7ssh__connection_8h_source.html">ne7ssh_connection.h</a>&gt;</code>
<p>
<div class="dynheader">
Collaboration diagram for ne7ssh_connection:</div>
<div class="dynsection">
<p><center><img src="classne7ssh__connection__coll__graph.png" border="0" usemap="#ne7ssh__connection__coll__map" alt="Collaboration graph"></center>
<map name="ne7ssh__connection__coll__map">
<area shape="rect" href="classne7ssh__channel.html" title="ne7ssh_channel" alt="" coords="443,137,565,164"><area shape="rect" href="classNe7sshSftp.html" title="Ne7sshSftp" alt="" coords="479,233,575,260"><area shape="rect" href="classne7ssh__string.html" title="ne7ssh_string" alt="" coords="504,7,613,33"><area shape="rect" href="classne7ssh__session.html" title="ne7ssh_session" alt="" coords="135,7,257,33"><area shape="rect" href="classne7ssh__crypt.html" title="ne7ssh_crypt" alt="" coords="8,137,115,164"><area shape="rect" href="classne7ssh__transport.html" title="ne7ssh_transport" alt="" coords="189,137,323,164"><area shape="rect" href="structNe7sshSftp_1_1sftpFile.html" title="Ne7sshSftp::sftpFile" alt="" coords="716,137,863,164"><area shape="rect" href="structNe7sshSftp_1_1sftpFileAttrs.html" title="Ne7sshSftp::sftpFileAttrs" alt="" coords="887,137,1065,164"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>

<p>
<a href="classne7ssh__connection-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classne7ssh__connection.html#7024b9b12d517609243fb90ecd859434">ne7ssh_connection</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classne7ssh__connection.html#089e8aa8fbdfded464394ee94334d36c">~ne7ssh_connection</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classne7ssh__connection.html#8078ac566bbddf9487131848d5c171d0">connectWithPassword</a> (uint32 channelID, const char *host, uint32 port, const char *username, const char *password, bool shell=true, int timeout=0)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classne7ssh__connection.html#4b9a9d4b26e474a175f8bacbc18e7e08">connectWithKey</a> (uint32 channelID, const char *host, uint32 port, const char *username, const char *privKeyFileName, bool shell=true, int timeout=0)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">SOCKET&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classne7ssh__connection.html#ec81b2d5753f8d333de76535af5cb670">getSocket</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classne7ssh__connection.html#e12a09bb5c6974e0b17ce957a8bf03f0">handleData</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classne7ssh__connection.html#c809469add6347cdc78c44491746062f">sendData</a> (const char *data)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classne7ssh__connection.html#717902f4f3a863309e1d013982aecd41">setChannelNo</a> (int channelID)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classne7ssh__connection.html#8afe35dfcf55958e5578a894a9111e73">getChannelNo</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classne7ssh__connection.html#13f6f62c5d0345f1573ad5626bc8e75e">data2Send</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classne7ssh__connection.html#32f5f75a2331f312d41678594e4edcd8">sendData</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classne7ssh__connection.html#9b0770473939bb8230be993d3948017d">sendCmd</a> (const char *cmd)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classne7ssh__connection.html#f90793537ef75cbed854f4e525a5c01b">sendClose</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classne7ssh__connection.html#5062b1df08b2cdb04ee8b6b2b73f0733">isOpen</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classne7ssh__connection.html#27691577539dd356f7f872755d7053de">isConnected</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">Botan::SecureVector<br class="typebreak">
&lt; Botan::byte &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classne7ssh__connection.html#3aac541e10f43b83a42aef34a1fb876f">getReceived</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classne7ssh__connection.html#fec5882335c281c8fc06d951b4d59b26">getCmdComplete</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classne7ssh__connection.html#b82b95339f325564f83bc2cc091af995">isCmdClosed</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classne7ssh__connection.html#9919d63251df10e4c0d4fd695b0751c2">isRemoteShell</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classne7ssh__connection.html#53d7ae314361b4911c8802e9fa780ae8">isCmdRunning</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classNe7sshSftp.html">Ne7sshSftp</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classne7ssh__connection.html#cd5e5fa36d401e816ce15989d30618c7">startSftp</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classne7ssh__connection.html#a149c0df2bf930f115026633d9daf550">isSftpActive</a> ()</td></tr>

<tr><td colspan="2"><br><h2>Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classne7ssh__connection.html#bb114ef7885807fef7722080c9be5fa4">checkRemoteVersion</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classne7ssh__connection.html#9bb5d840002bdf4b8a5f81fdfbee671b">sendLocalVersion</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classne7ssh__connection.html#fc3d154a577c422670c43dfa4c38fd0c">requestService</a> (const char *service)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classne7ssh__connection.html#cfc0a9286778d088487e1e6eef89f9d1">authWithPassword</a> (const char *username, const char *password)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classne7ssh__connection.html#e1103a358cc4c5e5551cc02b456f5b49">authWithKey</a> (const char *username, const char *privKeyFileName)</td></tr>

<tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="49acf69d43131d9174d1e68f84188d8e"></a><!-- doxytag: member="ne7ssh_connection::sock" ref="49acf69d43131d9174d1e68f84188d8e" args="" -->
SOCKET&nbsp;</td><td class="memItemRight" valign="bottom"><b>sock</b></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e08d7cefdd330c3a2b31f002e4d8a487"></a><!-- doxytag: member="ne7ssh_connection::thisChannel" ref="e08d7cefdd330c3a2b31f002e4d8a487" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><b>thisChannel</b></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9cefff6bb97c7307fb2ee054e825e8bd"></a><!-- doxytag: member="ne7ssh_connection::crypto" ref="9cefff6bb97c7307fb2ee054e825e8bd" args="" -->
<a class="el" href="classne7ssh__crypt.html">ne7ssh_crypt</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><b>crypto</b></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a3c39a9bb19430aca6defb29ab8860e7"></a><!-- doxytag: member="ne7ssh_connection::transport" ref="a3c39a9bb19430aca6defb29ab8860e7" args="" -->
<a class="el" href="classne7ssh__transport.html">ne7ssh_transport</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><b>transport</b></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="18aa6065c5ae0f765ed6ab4177406f16"></a><!-- doxytag: member="ne7ssh_connection::session" ref="18aa6065c5ae0f765ed6ab4177406f16" args="" -->
<a class="el" href="classne7ssh__session.html">ne7ssh_session</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><b>session</b></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b8c9ae036b1ab4cb2c4fc880a8c82ee2"></a><!-- doxytag: member="ne7ssh_connection::channel" ref="b8c9ae036b1ab4cb2c4fc880a8c82ee2" args="" -->
<a class="el" href="classne7ssh__channel.html">ne7ssh_channel</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><b>channel</b></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8db8d821419717b407070ff5871e7e86"></a><!-- doxytag: member="ne7ssh_connection::sftp" ref="8db8d821419717b407070ff5871e7e86" args="" -->
<a class="el" href="classNe7sshSftp.html">Ne7sshSftp</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><b>sftp</b></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="587dcb2378c7c8ca293f89ca082fcd4c"></a><!-- doxytag: member="ne7ssh_connection::mut" ref="587dcb2378c7c8ca293f89ca082fcd4c" args="" -->
Ne7ssh_Mutex&nbsp;</td><td class="memItemRight" valign="bottom"><b>mut</b></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a5270df356c1e379216e6864b7b4a351"></a><!-- doxytag: member="ne7ssh_connection::connected" ref="a5270df356c1e379216e6864b7b4a351" args="" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>connected</b></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b88210de03f765481fa9b14897e72f9d"></a><!-- doxytag: member="ne7ssh_connection::cmdRunning" ref="b88210de03f765481fa9b14897e72f9d" args="" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>cmdRunning</b></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fbd6bbdac2886895424266333eb2b8b0"></a><!-- doxytag: member="ne7ssh_connection::cmdClosed" ref="fbd6bbdac2886895424266333eb2b8b0" args="" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>cmdClosed</b></td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<dl class="author" compact><dt><b>Author:</b></dt><dd>Andrew Useckas </dd></dl>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="7024b9b12d517609243fb90ecd859434"></a><!-- doxytag: member="ne7ssh_connection::ne7ssh_connection" ref="7024b9b12d517609243fb90ecd859434" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ne7ssh_connection::ne7ssh_connection           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<a class="el" href="classne7ssh__connection.html">ne7ssh_connection</a> class constructor. 
</div>
</div><p>
<a class="anchor" name="089e8aa8fbdfded464394ee94334d36c"></a><!-- doxytag: member="ne7ssh_connection::~ne7ssh_connection" ref="089e8aa8fbdfded464394ee94334d36c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ne7ssh_connection::~ne7ssh_connection           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<a class="el" href="classne7ssh__connection.html">ne7ssh_connection</a> class destructor. 
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="e1103a358cc4c5e5551cc02b456f5b49"></a><!-- doxytag: member="ne7ssh_connection::authWithKey" ref="e1103a358cc4c5e5551cc02b456f5b49" args="(const char *username, const char *privKeyFileName)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ne7ssh_connection::authWithKey           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>username</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>privKeyFileName</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sends a test message to check if "publickey" authentication is allowed fo specified user. If succesfull proceeds wtih generating a signature and sending real authentication packet of "publickey" type. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>username</em>&nbsp;</td><td>Username used for authentication. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>privKeyFileName</em>&nbsp;</td><td>Full path to file containing private key to be used in authentication. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>True if authentication was successful, otherwise false is returned. </dd></dl>

<p>References <a class="el" href="ne7ssh__string_8cpp_source.html#l00110">ne7ssh_string::addChar()</a>, <a class="el" href="ne7ssh__string_8cpp_source.html#l00047">ne7ssh_string::addString()</a>, <a class="el" href="ne7ssh__string_8cpp_source.html#l00105">ne7ssh_string::addVector()</a>, <a class="el" href="ne7ssh__string_8cpp_source.html#l00091">ne7ssh_string::addVectorField()</a>, <a class="el" href="ne7ssh__string_8h_source.html#l00066">ne7ssh_string::clear()</a>, <a class="el" href="ne7ssh_8cpp_source.html#l00721">ne7ssh::errors()</a>, <a class="el" href="ne7ssh__keys_8cpp_source.html#l00259">ne7ssh_keys::generateSignature()</a>, <a class="el" href="ne7ssh__string_8cpp_source.html#l00159">ne7ssh_string::getByte()</a>, <a class="el" href="ne7ssh__keys_8h_source.html#l00139">ne7ssh_keys::getKeyAlgo()</a>, <a class="el" href="ne7ssh__keys_8cpp_source.html#l00351">ne7ssh_keys::getKeyPairFromFile()</a>, <a class="el" href="ne7ssh__transport_8cpp_source.html#l00401">ne7ssh_transport::getPacket()</a>, <a class="el" href="ne7ssh__keys_8cpp_source.html#l00567">ne7ssh_keys::getPublicKeyBlob()</a>, <a class="el" href="ne7ssh__session_8h_source.html#l00086">ne7ssh_session::getSessionID()</a>, <a class="el" href="ne7ssh__session_8h_source.html#l00134">ne7ssh_session::getSshChannel()</a>, <a class="el" href="ne7ssh__string_8cpp_source.html#l00122">ne7ssh_string::getString()</a>, <a class="el" href="ne7ssh__error_8cpp_source.html#l00042">Ne7sshError::push()</a>, <a class="el" href="ne7ssh__transport_8cpp_source.html#l00255">ne7ssh_transport::sendPacket()</a>, <a class="el" href="ne7ssh__string_8h_source.html#l00129">ne7ssh_string::value()</a>, and <a class="el" href="ne7ssh__transport_8cpp_source.html#l00301">ne7ssh_transport::waitForPacket()</a>.</p>

<p>Referenced by <a class="el" href="ne7ssh__connection_8cpp_source.html#l00075">connectWithKey()</a>.</p>

</div>
</div><p>
<a class="anchor" name="cfc0a9286778d088487e1e6eef89f9d1"></a><!-- doxytag: member="ne7ssh_connection::authWithPassword" ref="cfc0a9286778d088487e1e6eef89f9d1" args="(const char *username, const char *password)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ne7ssh_connection::authWithPassword           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>username</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>password</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sends an authentication request of "password" type. Waits for packet 'USERAUTH_SUCESS'. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>username</em>&nbsp;</td><td>Username used for authentication. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>password</em>&nbsp;</td><td>Password used for authentication. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>True if authentication was successful, otherwise false is returned. </dd></dl>

<p>References <a class="el" href="ne7ssh__string_8cpp_source.html#l00110">ne7ssh_string::addChar()</a>, <a class="el" href="ne7ssh__string_8cpp_source.html#l00047">ne7ssh_string::addString()</a>, <a class="el" href="ne7ssh__string_8h_source.html#l00066">ne7ssh_string::clear()</a>, <a class="el" href="ne7ssh_8cpp_source.html#l00721">ne7ssh::errors()</a>, <a class="el" href="ne7ssh__string_8cpp_source.html#l00159">ne7ssh_string::getByte()</a>, <a class="el" href="ne7ssh__transport_8cpp_source.html#l00401">ne7ssh_transport::getPacket()</a>, <a class="el" href="ne7ssh__string_8cpp_source.html#l00122">ne7ssh_string::getString()</a>, <a class="el" href="ne7ssh__error_8cpp_source.html#l00042">Ne7sshError::push()</a>, <a class="el" href="ne7ssh__transport_8cpp_source.html#l00255">ne7ssh_transport::sendPacket()</a>, <a class="el" href="ne7ssh__string_8h_source.html#l00129">ne7ssh_string::value()</a>, and <a class="el" href="ne7ssh__transport_8cpp_source.html#l00301">ne7ssh_transport::waitForPacket()</a>.</p>

<p>Referenced by <a class="el" href="ne7ssh__connection_8cpp_source.html#l00044">connectWithPassword()</a>.</p>

</div>
</div><p>
<a class="anchor" name="bb114ef7885807fef7722080c9be5fa4"></a><!-- doxytag: member="ne7ssh_connection::checkRemoteVersion" ref="bb114ef7885807fef7722080c9be5fa4" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ne7ssh_connection::checkRemoteVersion           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Checks if remote side is returning a correctly formated SSH version string, and makes sure that version 2 of SSH protocol is supported by the remote side. <dl class="return" compact><dt><b>Returns:</b></dt><dd>False if version string is malformed, or version 2 is not supported, otherwise true is returned. </dd></dl>

<p>References <a class="el" href="ne7ssh_8cpp_source.html#l00721">ne7ssh::errors()</a>, <a class="el" href="ne7ssh__session_8h_source.html#l00134">ne7ssh_session::getSshChannel()</a>, <a class="el" href="ne7ssh__error_8cpp_source.html#l00042">Ne7sshError::push()</a>, <a class="el" href="ne7ssh__transport_8cpp_source.html#l00219">ne7ssh_transport::receive()</a>, and <a class="el" href="ne7ssh__session_8h_source.html#l00068">ne7ssh_session::setRemoteVersion()</a>.</p>

<p>Referenced by <a class="el" href="ne7ssh__connection_8cpp_source.html#l00075">connectWithKey()</a>, and <a class="el" href="ne7ssh__connection_8cpp_source.html#l00044">connectWithPassword()</a>.</p>

</div>
</div><p>
<a class="anchor" name="4b9a9d4b26e474a175f8bacbc18e7e08"></a><!-- doxytag: member="ne7ssh_connection::connectWithKey" ref="4b9a9d4b26e474a175f8bacbc18e7e08" args="(uint32 channelID, const char *host, uint32 port, const char *username, const char *privKeyFileName, bool shell=true, int timeout=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ne7ssh_connection::connectWithKey           </td>
          <td>(</td>
          <td class="paramtype">uint32&nbsp;</td>
          <td class="paramname"> <em>channelID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>host</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32&nbsp;</td>
          <td class="paramname"> <em>port</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>username</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>privKeyFileName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>shell</em> = <code>true</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>timeout</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Connects to a remote host using SSH protocol version 2, with publickey based authentication. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>channelID</em>&nbsp;</td><td>ID assigned to the new channel. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>host</em>&nbsp;</td><td>Hostname / IP of the remote host. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>port</em>&nbsp;</td><td>Connection port. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>username</em>&nbsp;</td><td>Username to use in the authentication. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>privKeyFileName</em>&nbsp;</td><td>Full path to file containing private key to be used in authentication. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>shell</em>&nbsp;</td><td>Set this to true if you wish to launch the shell on the remote end. By default set to true. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>timeout</em>&nbsp;</td><td>Timeout for the connection procedure, in seconds. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A newly assigned channel ID, or -1 if connection failed. </dd></dl>

<p>References <a class="el" href="ne7ssh__connection_8cpp_source.html#l00167">authWithKey()</a>, <a class="el" href="ne7ssh__connection_8cpp_source.html#l00253">checkRemoteVersion()</a>, <a class="el" href="ne7ssh__transport_8cpp_source.html#l00059">ne7ssh_transport::establish()</a>, <a class="el" href="ne7ssh__channel_8cpp_source.html#l00274">ne7ssh_channel::getShell()</a>, <a class="el" href="ne7ssh__kex_8cpp_source.html#l00130">ne7ssh_kex::handleInit()</a>, <a class="el" href="ne7ssh__kex_8cpp_source.html#l00242">ne7ssh_kex::handleKexDHReply()</a>, <a class="el" href="ne7ssh__channel_8cpp_source.html#l00034">ne7ssh_channel::open()</a>, <a class="el" href="ne7ssh__connection_8cpp_source.html#l00108">requestService()</a>, <a class="el" href="ne7ssh__kex_8cpp_source.html#l00107">ne7ssh_kex::sendInit()</a>, <a class="el" href="ne7ssh__kex_8cpp_source.html#l00217">ne7ssh_kex::sendKexDHInit()</a>, <a class="el" href="ne7ssh__kex_8cpp_source.html#l00276">ne7ssh_kex::sendKexNewKeys()</a>, <a class="el" href="ne7ssh__connection_8cpp_source.html#l00275">sendLocalVersion()</a>, and <a class="el" href="ne7ssh__session_8h_source.html#l00128">ne7ssh_session::setSshChannel()</a>.</p>

<p>Referenced by <a class="el" href="ne7ssh_8cpp_source.html#l00293">ne7ssh::connectWithKey()</a>.</p>

</div>
</div><p>
<a class="anchor" name="8078ac566bbddf9487131848d5c171d0"></a><!-- doxytag: member="ne7ssh_connection::connectWithPassword" ref="8078ac566bbddf9487131848d5c171d0" args="(uint32 channelID, const char *host, uint32 port, const char *username, const char *password, bool shell=true, int timeout=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ne7ssh_connection::connectWithPassword           </td>
          <td>(</td>
          <td class="paramtype">uint32&nbsp;</td>
          <td class="paramname"> <em>channelID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>host</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32&nbsp;</td>
          <td class="paramname"> <em>port</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>username</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>password</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>shell</em> = <code>true</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>timeout</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Connects to a remote host using SSH protocol version 2, with password based authentication. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>channelID</em>&nbsp;</td><td>ID of the new channel. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>host</em>&nbsp;</td><td>Hostname / IP of the remote host. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>port</em>&nbsp;</td><td>Connection port. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>username</em>&nbsp;</td><td>Username to use in the authentication. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>password</em>&nbsp;</td><td>Password to use in the authentication. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>shell</em>&nbsp;</td><td>Set this to true if you wish to launch the shell on the remote end. By default set to true. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>timeout</em>&nbsp;</td><td>Timeout for the connection procedure, in seconds. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A newly assigned channel ID, or -1 if connection failed. </dd></dl>

<p>References <a class="el" href="ne7ssh__connection_8cpp_source.html#l00124">authWithPassword()</a>, <a class="el" href="ne7ssh__connection_8cpp_source.html#l00253">checkRemoteVersion()</a>, <a class="el" href="ne7ssh__transport_8cpp_source.html#l00059">ne7ssh_transport::establish()</a>, <a class="el" href="ne7ssh__channel_8cpp_source.html#l00274">ne7ssh_channel::getShell()</a>, <a class="el" href="ne7ssh__kex_8cpp_source.html#l00130">ne7ssh_kex::handleInit()</a>, <a class="el" href="ne7ssh__kex_8cpp_source.html#l00242">ne7ssh_kex::handleKexDHReply()</a>, <a class="el" href="ne7ssh__channel_8cpp_source.html#l00034">ne7ssh_channel::open()</a>, <a class="el" href="ne7ssh__connection_8cpp_source.html#l00108">requestService()</a>, <a class="el" href="ne7ssh__kex_8cpp_source.html#l00107">ne7ssh_kex::sendInit()</a>, <a class="el" href="ne7ssh__kex_8cpp_source.html#l00217">ne7ssh_kex::sendKexDHInit()</a>, <a class="el" href="ne7ssh__kex_8cpp_source.html#l00276">ne7ssh_kex::sendKexNewKeys()</a>, <a class="el" href="ne7ssh__connection_8cpp_source.html#l00275">sendLocalVersion()</a>, and <a class="el" href="ne7ssh__session_8h_source.html#l00128">ne7ssh_session::setSshChannel()</a>.</p>

<p>Referenced by <a class="el" href="ne7ssh_8cpp_source.html#l00242">ne7ssh::connectWithPassword()</a>.</p>

</div>
</div><p>
<a class="anchor" name="13f6f62c5d0345f1573ad5626bc8e75e"></a><!-- doxytag: member="ne7ssh_connection::data2Send" ref="13f6f62c5d0345f1573ad5626bc8e75e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ne7ssh_connection::data2Send           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Checks for the data in the send buffer. <dl class="return" compact><dt><b>Returns:</b></dt><dd>True is there is data to send, otherwise false. </dd></dl>

<p>References <a class="el" href="ne7ssh__channel_8h_source.html#l00167">ne7ssh_channel::data2Send()</a>.</p>

</div>
</div><p>
<a class="anchor" name="8afe35dfcf55958e5578a894a9111e73"></a><!-- doxytag: member="ne7ssh_connection::getChannelNo" ref="8afe35dfcf55958e5578a894a9111e73" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ne7ssh_connection::getChannelNo           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Retrieves the current SSH channel. <dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns SSH channel or -1 if not connected. </dd></dl>

</div>
</div><p>
<a class="anchor" name="fec5882335c281c8fc06d951b4d59b26"></a><!-- doxytag: member="ne7ssh_connection::getCmdComplete" ref="fec5882335c281c8fc06d951b4d59b26" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ne7ssh_connection::getCmdComplete           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
When executing a single command with <a class="el" href="classne7ssh.html#cd4c007e963c376b28cacaf0d9c9fa15">ne7ssh::sendCmd</a> this command is used to determine when remote side finishes the xecution. <dl class="return" compact><dt><b>Returns:</b></dt><dd>True if execution of the command is complete. Otherwise false. </dd></dl>

<p>References <a class="el" href="ne7ssh__channel_8h_source.html#l00197">ne7ssh_channel::getCmdComplete()</a>.</p>

<p>Referenced by <a class="el" href="ne7ssh__connection_8cpp_source.html#l00321">sendClose()</a>.</p>

</div>
</div><p>
<a class="anchor" name="3aac541e10f43b83a42aef34a1fb876f"></a><!-- doxytag: member="ne7ssh_connection::getReceived" ref="3aac541e10f43b83a42aef34a1fb876f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Botan::SecureVector&lt;Botan::byte&gt;&amp; ne7ssh_connection::getReceived           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Retrieves the last received packet. <dl class="return" compact><dt><b>Returns:</b></dt><dd>A reference to a buffer containing the last received packet. </dd></dl>

<p>References <a class="el" href="ne7ssh__channel_8h_source.html#l00191">ne7ssh_channel::getReceived()</a>.</p>

<p>Referenced by <a class="el" href="ne7ssh_8cpp_source.html#l00612">ne7ssh::getReceivedSize()</a>, <a class="el" href="ne7ssh_8cpp_source.html#l00556">ne7ssh::read()</a>, and <a class="el" href="ne7ssh_8cpp_source.html#l00583">ne7ssh::readBinary()</a>.</p>

</div>
</div><p>
<a class="anchor" name="ec81b2d5753f8d333de76535af5cb670"></a><!-- doxytag: member="ne7ssh_connection::getSocket" ref="ec81b2d5753f8d333de76535af5cb670" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SOCKET ne7ssh_connection::getSocket           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Retrieves the tcp socket number. <dl class="return" compact><dt><b>Returns:</b></dt><dd>Socket, or -1 if not connected. </dd></dl>

</div>
</div><p>
<a class="anchor" name="e12a09bb5c6974e0b17ce957a8bf03f0"></a><!-- doxytag: member="ne7ssh_connection::handleData" ref="e12a09bb5c6974e0b17ce957a8bf03f0" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ne7ssh_connection::handleData           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
When new data arrives, and is available for reading, this function is called from selectThread to handle it. 
<p>References <a class="el" href="ne7ssh__channel_8cpp_source.html#l00301">ne7ssh_channel::receive()</a>.</p>

<p>Referenced by <a class="el" href="ne7ssh_8cpp_source.html#l00146">ne7ssh::selectThread()</a>.</p>

</div>
</div><p>
<a class="anchor" name="b82b95339f325564f83bc2cc091af995"></a><!-- doxytag: member="ne7ssh_connection::isCmdClosed" ref="b82b95339f325564f83bc2cc091af995" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ne7ssh_connection::isCmdClosed           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
When executing a single command with <a class="el" href="classne7ssh.html#cd4c007e963c376b28cacaf0d9c9fa15">ne7ssh::sendCmd</a> this command is used to determine when the user requested a close() on the channel. <dl class="return" compact><dt><b>Returns:</b></dt><dd>True if the user requested to close the channel. Otherwise false. </dd></dl>

</div>
</div><p>
<a class="anchor" name="53d7ae314361b4911c8802e9fa780ae8"></a><!-- doxytag: member="ne7ssh_connection::isCmdRunning" ref="53d7ae314361b4911c8802e9fa780ae8" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ne7ssh_connection::isCmdRunning           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Checks if current connection is executing a single command, without a shell. <dl class="return" compact><dt><b>Returns:</b></dt><dd>True if a single command is running. Otherwise false. </dd></dl>

</div>
</div><p>
<a class="anchor" name="27691577539dd356f7f872755d7053de"></a><!-- doxytag: member="ne7ssh_connection::isConnected" ref="27691577539dd356f7f872755d7053de" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ne7ssh_connection::isConnected           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Checks if process is connected and authenticated to the remote side. <dl class="return" compact><dt><b>Returns:</b></dt><dd>True if connected, otherwise false is returned. </dd></dl>

</div>
</div><p>
<a class="anchor" name="5062b1df08b2cdb04ee8b6b2b73f0733"></a><!-- doxytag: member="ne7ssh_connection::isOpen" ref="5062b1df08b2cdb04ee8b6b2b73f0733" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ne7ssh_connection::isOpen           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Checks if channel is open. <dl class="return" compact><dt><b>Returns:</b></dt><dd>True if channel is open, otherwise false is returned. </dd></dl>

<p>References <a class="el" href="ne7ssh__channel_8h_source.html#l00173">ne7ssh_channel::isOpen()</a>.</p>

</div>
</div><p>
<a class="anchor" name="9919d63251df10e4c0d4fd695b0751c2"></a><!-- doxytag: member="ne7ssh_connection::isRemoteShell" ref="9919d63251df10e4c0d4fd695b0751c2" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ne7ssh_connection::isRemoteShell           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Determines if the shell has been spawned on the remote side. <dl class="return" compact><dt><b>Returns:</b></dt><dd>True if the shell has been spawned. Otherwise false. </dd></dl>

<p>References <a class="el" href="ne7ssh__channel_8h_source.html#l00203">ne7ssh_channel::isRemoteShell()</a>.</p>

</div>
</div><p>
<a class="anchor" name="a149c0df2bf930f115026633d9daf550"></a><!-- doxytag: member="ne7ssh_connection::isSftpActive" ref="a149c0df2bf930f115026633d9daf550" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ne7ssh_connection::isSftpActive           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Checks if SFTP subsystem is active on the current connection. <dl class="return" compact><dt><b>Returns:</b></dt><dd>True if SFTP subsystem is active, otherwise false. </dd></dl>

<p>Referenced by <a class="el" href="ne7ssh__connection_8cpp_source.html#l00321">sendClose()</a>.</p>

</div>
</div><p>
<a class="anchor" name="fc3d154a577c422670c43dfa4c38fd0c"></a><!-- doxytag: member="ne7ssh_connection::requestService" ref="fc3d154a577c422670c43dfa4c38fd0c" args="(const char *service)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ne7ssh_connection::requestService           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>service</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sends an SSH service request, waits for 'SERVICE_ACCEPT' packet. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>service</em>&nbsp;</td><td>pointer to a string containing the requested SSH service. For example "ssh-userauth". </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>True If SERVICE_ACCEPT packet was received, otherwise false is returned. </dd></dl>

<p>References <a class="el" href="ne7ssh__string_8cpp_source.html#l00110">ne7ssh_string::addChar()</a>, <a class="el" href="ne7ssh__string_8cpp_source.html#l00047">ne7ssh_string::addString()</a>, <a class="el" href="ne7ssh_8cpp_source.html#l00721">ne7ssh::errors()</a>, <a class="el" href="ne7ssh__session_8h_source.html#l00134">ne7ssh_session::getSshChannel()</a>, <a class="el" href="ne7ssh__error_8cpp_source.html#l00042">Ne7sshError::push()</a>, <a class="el" href="ne7ssh__transport_8cpp_source.html#l00255">ne7ssh_transport::sendPacket()</a>, <a class="el" href="ne7ssh__string_8h_source.html#l00129">ne7ssh_string::value()</a>, and <a class="el" href="ne7ssh__transport_8cpp_source.html#l00301">ne7ssh_transport::waitForPacket()</a>.</p>

<p>Referenced by <a class="el" href="ne7ssh__connection_8cpp_source.html#l00075">connectWithKey()</a>, and <a class="el" href="ne7ssh__connection_8cpp_source.html#l00044">connectWithPassword()</a>.</p>

</div>
</div><p>
<a class="anchor" name="f90793537ef75cbed854f4e525a5c01b"></a><!-- doxytag: member="ne7ssh_connection::sendClose" ref="f90793537ef75cbed854f4e525a5c01b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ne7ssh_connection::sendClose           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This function is used to close the current connection. <p>
First closes the channel, and then the connection itself. <dl class="return" compact><dt><b>Returns:</b></dt><dd>True, if packet sent successfully, otherwise false is returned. </dd></dl>

<p>References <a class="el" href="ne7ssh__connection_8h_source.html#l00200">getCmdComplete()</a>, <a class="el" href="ne7ssh__channel_8h_source.html#l00173">ne7ssh_channel::isOpen()</a>, <a class="el" href="ne7ssh__connection_8cpp_source.html#l00336">isSftpActive()</a>, and <a class="el" href="ne7ssh__channel_8cpp_source.html#l00139">ne7ssh_channel::sendClose()</a>.</p>

<p>Referenced by <a class="el" href="ne7ssh_8cpp_source.html#l00472">ne7ssh::close()</a>.</p>

</div>
</div><p>
<a class="anchor" name="9b0770473939bb8230be993d3948017d"></a><!-- doxytag: member="ne7ssh_connection::sendCmd" ref="9b0770473939bb8230be993d3948017d" args="(const char *cmd)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ne7ssh_connection::sendCmd           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>cmd</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>cmd</em>&nbsp;</td><td></td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl>

<p>References <a class="el" href="ne7ssh__channel_8cpp_source.html#l00249">ne7ssh_channel::execCmd()</a>.</p>

<p>Referenced by <a class="el" href="ne7ssh_8cpp_source.html#l00395">ne7ssh::sendCmd()</a>.</p>

</div>
</div><p>
<a class="anchor" name="32f5f75a2331f312d41678594e4edcd8"></a><!-- doxytag: member="ne7ssh_connection::sendData" ref="32f5f75a2331f312d41678594e4edcd8" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ne7ssh_connection::sendData           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sends the content of the buffer., <p>
Usually used after data2Send returns true, executed by selectThread. 
<p>References <a class="el" href="ne7ssh__channel_8cpp_source.html#l00421">ne7ssh_channel::sendAll()</a>.</p>

</div>
</div><p>
<a class="anchor" name="c809469add6347cdc78c44491746062f"></a><!-- doxytag: member="ne7ssh_connection::sendData" ref="c809469add6347cdc78c44491746062f" args="(const char *data)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ne7ssh_connection::sendData           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>data</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This function is used to write commands to the buffer, later to be sent to the remote site for execution. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>data</em>&nbsp;</td><td>Pointer to a string, containing command to be written to the buffer. </td></tr>
  </table>
</dl>

<p>References <a class="el" href="ne7ssh__channel_8cpp_source.html#l00376">ne7ssh_channel::write()</a>.</p>

<p>Referenced by <a class="el" href="ne7ssh_8cpp_source.html#l00146">ne7ssh::selectThread()</a>, and <a class="el" href="ne7ssh_8cpp_source.html#l00345">ne7ssh::send()</a>.</p>

</div>
</div><p>
<a class="anchor" name="9bb5d840002bdf4b8a5f81fdfbee671b"></a><!-- doxytag: member="ne7ssh_connection::sendLocalVersion" ref="9bb5d840002bdf4b8a5f81fdfbee671b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ne7ssh_connection::sendLocalVersion           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sends local version string. <dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns false is there any communication errors occur, otherwise true is returned. </dd></dl>

<p>References <a class="el" href="ne7ssh__transport_8cpp_source.html#l00195">ne7ssh_transport::send()</a>, and <a class="el" href="ne7ssh__session_8h_source.html#l00056">ne7ssh_session::setLocalVersion()</a>.</p>

<p>Referenced by <a class="el" href="ne7ssh__connection_8cpp_source.html#l00075">connectWithKey()</a>, and <a class="el" href="ne7ssh__connection_8cpp_source.html#l00044">connectWithPassword()</a>.</p>

</div>
</div><p>
<a class="anchor" name="717902f4f3a863309e1d013982aecd41"></a><!-- doxytag: member="ne7ssh_connection::setChannelNo" ref="717902f4f3a863309e1d013982aecd41" args="(int channelID)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ne7ssh_connection::setChannelNo           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>channelID</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the current SSH channel number. 
<p>Referenced by <a class="el" href="ne7ssh_8cpp_source.html#l00293">ne7ssh::connectWithKey()</a>, and <a class="el" href="ne7ssh_8cpp_source.html#l00242">ne7ssh::connectWithPassword()</a>.</p>

</div>
</div><p>
<a class="anchor" name="cd5e5fa36d401e816ce15989d30618c7"></a><!-- doxytag: member="ne7ssh_connection::startSftp" ref="cd5e5fa36d401e816ce15989d30618c7" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classNe7sshSftp.html">Ne7sshSftp</a> * ne7ssh_connection::startSftp           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Starts a new sftp subsystem. <dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns a pointer to the newly started <a class="el" href="classNe7sshSftp.html">Ne7sshSftp</a> instance. </dd></dl>

<p>References <a class="el" href="ne7ssh_8cpp_source.html#l00721">ne7ssh::errors()</a>, <a class="el" href="ne7ssh__session_8h_source.html#l00134">ne7ssh_session::getSshChannel()</a>, <a class="el" href="ne7ssh__sftp_8cpp_source.html#l00045">Ne7sshSftp::init()</a>, <a class="el" href="ne7ssh__channel_8h_source.html#l00203">ne7ssh_channel::isRemoteShell()</a>, and <a class="el" href="ne7ssh__error_8cpp_source.html#l00042">Ne7sshError::push()</a>.</p>

<p>Referenced by <a class="el" href="ne7ssh_8cpp_source.html#l00364">ne7ssh::initSftp()</a>.</p>

</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="ne7ssh__connection_8h_source.html">ne7ssh_connection.h</a><li>ne7ssh_connection.cpp</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Tue May 5 14:10:42 2009 for ne7ssh.kdevelop by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
</body>
</html>