| 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
|
|---|
| 2 | <html>
|
|---|
| 3 | <head>
|
|---|
| 4 | <meta name="GENERATOR" content="PasDoc 0.9.0">
|
|---|
| 5 | <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
|
|---|
| 6 | <title>tlntsend: Class TTelnetSend</title>
|
|---|
| 7 | <link rel="StyleSheet" type="text/css" href="pasdoc.css">
|
|---|
| 8 | </head>
|
|---|
| 9 | <body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#FF0000">
|
|---|
| 10 | <a name="TTelnetSend"></a><h1 class="cio">Class TTelnetSend</h1>
|
|---|
| 11 | <table class="sections">
|
|---|
| 12 | <tr>
|
|---|
| 13 | <td><a class="section" href="#@Description">Description</a></td><td><a class="section" href="#@Hierarchy">Hierarchy</a></td><td>Fields</td><td><a class="section" href="#@Methods">Methods</a></td><td><a class="section" href="#@Properties">Properties</a></td></tr></table>
|
|---|
| 14 | <a name="@Description"></a><h2 class="unit">Unit</h2>
|
|---|
| 15 | <p class="unitlink">
|
|---|
| 16 | <a href="tlntsend.html">tlntsend</a></p>
|
|---|
| 17 | <h2 class="declaration">Declaration</h2>
|
|---|
| 18 | <p class="declaration">
|
|---|
| 19 | <code>type TTelnetSend = class(<a class="normal" href="blcksock.TSynaClient.html">TSynaClient</a>)</code></p>
|
|---|
| 20 | <h2 class="description">Description</h2>
|
|---|
| 21 | <p>
|
|---|
| 22 | Class with implementation of Telnet/SSH script client.</p>
|
|---|
| 23 | <p>
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 | <p>Note: Are you missing properties for specify server address and port? Look to parent <a class="normal" href="blcksock.TSynaClient.html">TSynaClient</a> too!</p>
|
|---|
| 27 | <a name="@Hierarchy"></a><h2 class="hierarchy">Hierarchy</h2>
|
|---|
| 28 | <ul class="hierarchy"><li class="ancestor">TObject</li>
|
|---|
| 29 | <li class="ancestor"><a class="normal" href="blcksock.TSynaClient.html">TSynaClient</a></li>
|
|---|
| 30 | <li class="thisitem">TTelnetSend</li></ul><h2 class="overview">Overview</h2>
|
|---|
| 31 | <a name="@Methods"></a><h3 class="summary">Methods</h3>
|
|---|
| 32 | <table class="summary">
|
|---|
| 33 | <tr class="list">
|
|---|
| 34 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 35 | <td class="itemcode"><code>constructor <b><a href="tlntsend.TTelnetSend.html#Create">Create</a></b>;</code></td>
|
|---|
| 36 | </tr>
|
|---|
| 37 | <tr class="list2">
|
|---|
| 38 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 39 | <td class="itemcode"><code>destructor <b><a href="tlntsend.TTelnetSend.html#Destroy">Destroy</a></b>; override;</code></td>
|
|---|
| 40 | </tr>
|
|---|
| 41 | <tr class="list">
|
|---|
| 42 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 43 | <td class="itemcode"><code>function <b><a href="tlntsend.TTelnetSend.html#Login">Login</a></b>: Boolean;</code></td>
|
|---|
| 44 | </tr>
|
|---|
| 45 | <tr class="list2">
|
|---|
| 46 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 47 | <td class="itemcode"><code>function <b><a href="tlntsend.TTelnetSend.html#SSHLogin">SSHLogin</a></b>: Boolean;</code></td>
|
|---|
| 48 | </tr>
|
|---|
| 49 | <tr class="list">
|
|---|
| 50 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 51 | <td class="itemcode"><code>procedure <b><a href="tlntsend.TTelnetSend.html#Logout">Logout</a></b>;</code></td>
|
|---|
| 52 | </tr>
|
|---|
| 53 | <tr class="list2">
|
|---|
| 54 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 55 | <td class="itemcode"><code>procedure <b><a href="tlntsend.TTelnetSend.html#Send">Send</a></b>(const Value: string);</code></td>
|
|---|
| 56 | </tr>
|
|---|
| 57 | <tr class="list">
|
|---|
| 58 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 59 | <td class="itemcode"><code>function <b><a href="tlntsend.TTelnetSend.html#WaitFor">WaitFor</a></b>(const Value: string): Boolean;</code></td>
|
|---|
| 60 | </tr>
|
|---|
| 61 | <tr class="list2">
|
|---|
| 62 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 63 | <td class="itemcode"><code>function <b><a href="tlntsend.TTelnetSend.html#RecvTerminated">RecvTerminated</a></b>(const Terminator: string): string;</code></td>
|
|---|
| 64 | </tr>
|
|---|
| 65 | <tr class="list">
|
|---|
| 66 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 67 | <td class="itemcode"><code>function <b><a href="tlntsend.TTelnetSend.html#RecvString">RecvString</a></b>: string;</code></td>
|
|---|
| 68 | </tr>
|
|---|
| 69 | </table>
|
|---|
| 70 | <a name="@Properties"></a><h3 class="summary">Properties</h3>
|
|---|
| 71 | <table class="summary">
|
|---|
| 72 | <tr class="list">
|
|---|
| 73 | <td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
|
|---|
| 74 | <td class="itemcode"><code>property <b><a href="tlntsend.TTelnetSend.html#Sock">Sock</a></b>: <a href="blcksock.TTCPBlockSocket.html">TTCPBlockSocket</a> read FSock;</code></td>
|
|---|
| 75 | </tr>
|
|---|
| 76 | <tr class="list2">
|
|---|
| 77 | <td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
|
|---|
| 78 | <td class="itemcode"><code>property <b><a href="tlntsend.TTelnetSend.html#SessionLog">SessionLog</a></b>: Ansistring read FSessionLog write FSessionLog;</code></td>
|
|---|
| 79 | </tr>
|
|---|
| 80 | <tr class="list">
|
|---|
| 81 | <td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
|
|---|
| 82 | <td class="itemcode"><code>property <b><a href="tlntsend.TTelnetSend.html#TermType">TermType</a></b>: Ansistring read FTermType write FTermType;</code></td>
|
|---|
| 83 | </tr>
|
|---|
| 84 | </table>
|
|---|
| 85 | <h2 class="description">Description</h2>
|
|---|
| 86 | <h3 class="detail">Methods</h3>
|
|---|
| 87 | <table class="detail">
|
|---|
| 88 | <tr class="list">
|
|---|
| 89 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 90 | <td class="itemcode"><a name="Create"></a><code>constructor <b>Create</b>;</code></td>
|
|---|
| 91 | </tr>
|
|---|
| 92 | </table>
|
|---|
| 93 | <table class="detail">
|
|---|
| 94 | <tr class="list">
|
|---|
| 95 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 96 | <td class="itemcode"><a name="Destroy"></a><code>destructor <b>Destroy</b>; override;</code></td>
|
|---|
| 97 | </tr>
|
|---|
| 98 | </table>
|
|---|
| 99 | <table class="detail">
|
|---|
| 100 | <tr class="list">
|
|---|
| 101 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 102 | <td class="itemcode"><a name="Login"></a><code>function <b>Login</b>: Boolean;</code></td>
|
|---|
| 103 | </tr>
|
|---|
| 104 | </table>
|
|---|
| 105 | <p>
|
|---|
| 106 | Connects to Telnet server.</p>
|
|---|
| 107 | <table class="detail">
|
|---|
| 108 | <tr class="list">
|
|---|
| 109 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 110 | <td class="itemcode"><a name="SSHLogin"></a><code>function <b>SSHLogin</b>: Boolean;</code></td>
|
|---|
| 111 | </tr>
|
|---|
| 112 | </table>
|
|---|
| 113 | <p>
|
|---|
| 114 | Connects to SSH2 server and login by Username and Password properties.
|
|---|
| 115 |
|
|---|
| 116 | <p>You must use some of SSL plugins with SSH support. For exammple CryptLib.</p>
|
|---|
| 117 | <table class="detail">
|
|---|
| 118 | <tr class="list">
|
|---|
| 119 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 120 | <td class="itemcode"><a name="Logout"></a><code>procedure <b>Logout</b>;</code></td>
|
|---|
| 121 | </tr>
|
|---|
| 122 | </table>
|
|---|
| 123 | <p>
|
|---|
| 124 | Logout from telnet server.</p>
|
|---|
| 125 | <table class="detail">
|
|---|
| 126 | <tr class="list">
|
|---|
| 127 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 128 | <td class="itemcode"><a name="Send"></a><code>procedure <b>Send</b>(const Value: string);</code></td>
|
|---|
| 129 | </tr>
|
|---|
| 130 | </table>
|
|---|
| 131 | <p>
|
|---|
| 132 | Send this data to telnet server.</p>
|
|---|
| 133 | <table class="detail">
|
|---|
| 134 | <tr class="list">
|
|---|
| 135 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 136 | <td class="itemcode"><a name="WaitFor"></a><code>function <b>WaitFor</b>(const Value: string): Boolean;</code></td>
|
|---|
| 137 | </tr>
|
|---|
| 138 | </table>
|
|---|
| 139 | <p>
|
|---|
| 140 | Reading data from telnet server until Value is readed. If it is not readed until timeout, result is <code>False</code>. Otherwise result is <code>True</code>.</p>
|
|---|
| 141 | <table class="detail">
|
|---|
| 142 | <tr class="list">
|
|---|
| 143 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 144 | <td class="itemcode"><a name="RecvTerminated"></a><code>function <b>RecvTerminated</b>(const Terminator: string): string;</code></td>
|
|---|
| 145 | </tr>
|
|---|
| 146 | </table>
|
|---|
| 147 | <p>
|
|---|
| 148 | Read data terminated by terminator from telnet server.</p>
|
|---|
| 149 | <table class="detail">
|
|---|
| 150 | <tr class="list">
|
|---|
| 151 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 152 | <td class="itemcode"><a name="RecvString"></a><code>function <b>RecvString</b>: string;</code></td>
|
|---|
| 153 | </tr>
|
|---|
| 154 | </table>
|
|---|
| 155 | <p>
|
|---|
| 156 | Read string from telnet server.</p>
|
|---|
| 157 | <h3 class="detail">Properties</h3>
|
|---|
| 158 | <table class="detail">
|
|---|
| 159 | <tr class="list">
|
|---|
| 160 | <td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
|
|---|
| 161 | <td class="itemcode"><a name="Sock"></a><code>property <b>Sock</b>: <a href="blcksock.TTCPBlockSocket.html">TTCPBlockSocket</a> read FSock;</code></td>
|
|---|
| 162 | </tr>
|
|---|
| 163 | </table>
|
|---|
| 164 | <p>
|
|---|
| 165 | Socket object used for TCP/IP operation. Good for seting OnStatus hook, etc.</p>
|
|---|
| 166 | <table class="detail">
|
|---|
| 167 | <tr class="list">
|
|---|
| 168 | <td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
|
|---|
| 169 | <td class="itemcode"><a name="SessionLog"></a><code>property <b>SessionLog</b>: Ansistring read FSessionLog write FSessionLog;</code></td>
|
|---|
| 170 | </tr>
|
|---|
| 171 | </table>
|
|---|
| 172 | <p>
|
|---|
| 173 | all readed datas in this session (from connect) is stored in this large string.</p>
|
|---|
| 174 | <table class="detail">
|
|---|
| 175 | <tr class="list">
|
|---|
| 176 | <td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
|
|---|
| 177 | <td class="itemcode"><a name="TermType"></a><code>property <b>TermType</b>: Ansistring read FTermType write FTermType;</code></td>
|
|---|
| 178 | </tr>
|
|---|
| 179 | </table>
|
|---|
| 180 | <p>
|
|---|
| 181 | Terminal type indentification. By default is 'SYNAPSE'.</p>
|
|---|
| 182 | <hr noshade size="1"><span class="appinfo"><em>Generated by <a target="_parent" href="http://pasdoc.sourceforge.net/">PasDoc 0.9.0</a> on 2012-04-23 21:38:52</em>
|
|---|
| 183 | </span>
|
|---|
| 184 | </body></html>
|
|---|