| 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>blcksock: Class TTCPBlockSocket</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="TTCPBlockSocket"></a><h1 class="cio">Class TTCPBlockSocket</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="blcksock.html">blcksock</a></p>
|
|---|
| 17 | <h2 class="declaration">Declaration</h2>
|
|---|
| 18 | <p class="declaration">
|
|---|
| 19 | <code>type TTCPBlockSocket = class(<a class="normal" href="blcksock.TSocksBlockSocket.html">TSocksBlockSocket</a>)</code></p>
|
|---|
| 20 | <h2 class="description">Description</h2>
|
|---|
| 21 | <p>
|
|---|
| 22 | Implementation of TCP socket.</p>
|
|---|
| 23 | <p>
|
|---|
| 24 | Supported features: IPv4, IPv6, SSL/TLS or SSH (depending on used plugin), SOCKS5 proxy (outgoing connections and limited incomming), SOCKS4/4a proxy (outgoing connections and limited incomming), TCP through HTTP proxy tunnel.</p>
|
|---|
| 25 | <a name="@Hierarchy"></a><h2 class="hierarchy">Hierarchy</h2>
|
|---|
| 26 | <ul class="hierarchy"><li class="ancestor">TObject</li>
|
|---|
| 27 | <li class="ancestor"><a class="normal" href="blcksock.TBlockSocket.html">TBlockSocket</a></li>
|
|---|
| 28 | <li class="ancestor"><a class="normal" href="blcksock.TSocksBlockSocket.html">TSocksBlockSocket</a></li>
|
|---|
| 29 | <li class="thisitem">TTCPBlockSocket</li></ul><h2 class="overview">Overview</h2>
|
|---|
| 30 | <a name="@Methods"></a><h3 class="summary">Methods</h3>
|
|---|
| 31 | <table class="summary">
|
|---|
| 32 | <tr class="list">
|
|---|
| 33 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 34 | <td class="itemcode"><code>constructor <b><a href="blcksock.TTCPBlockSocket.html#Create">Create</a></b>;</code></td>
|
|---|
| 35 | </tr>
|
|---|
| 36 | <tr class="list2">
|
|---|
| 37 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 38 | <td class="itemcode"><code>constructor <b><a href="blcksock.TTCPBlockSocket.html#CreateWithSSL">CreateWithSSL</a></b>(SSLPlugin: <a href="blcksock.html#TSSLClass">TSSLClass</a>);</code></td>
|
|---|
| 39 | </tr>
|
|---|
| 40 | <tr class="list">
|
|---|
| 41 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 42 | <td class="itemcode"><code>destructor <b><a href="blcksock.TTCPBlockSocket.html#Destroy">Destroy</a></b>; override;</code></td>
|
|---|
| 43 | </tr>
|
|---|
| 44 | <tr class="list2">
|
|---|
| 45 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 46 | <td class="itemcode"><code>procedure <b><a href="blcksock.TTCPBlockSocket.html#CloseSocket">CloseSocket</a></b>; override;</code></td>
|
|---|
| 47 | </tr>
|
|---|
| 48 | <tr class="list">
|
|---|
| 49 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 50 | <td class="itemcode"><code>function <b><a href="blcksock.TTCPBlockSocket.html#WaitingData">WaitingData</a></b>: Integer; override;</code></td>
|
|---|
| 51 | </tr>
|
|---|
| 52 | <tr class="list2">
|
|---|
| 53 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 54 | <td class="itemcode"><code>procedure <b><a href="blcksock.TTCPBlockSocket.html#Listen">Listen</a></b>; override;</code></td>
|
|---|
| 55 | </tr>
|
|---|
| 56 | <tr class="list">
|
|---|
| 57 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 58 | <td class="itemcode"><code>function <b><a href="blcksock.TTCPBlockSocket.html#Accept">Accept</a></b>: TSocket; override;</code></td>
|
|---|
| 59 | </tr>
|
|---|
| 60 | <tr class="list2">
|
|---|
| 61 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 62 | <td class="itemcode"><code>procedure <b><a href="blcksock.TTCPBlockSocket.html#Connect">Connect</a></b>(IP, Port: string); override;</code></td>
|
|---|
| 63 | </tr>
|
|---|
| 64 | <tr class="list">
|
|---|
| 65 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 66 | <td class="itemcode"><code>procedure <b><a href="blcksock.TTCPBlockSocket.html#SSLDoConnect">SSLDoConnect</a></b>;</code></td>
|
|---|
| 67 | </tr>
|
|---|
| 68 | <tr class="list2">
|
|---|
| 69 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 70 | <td class="itemcode"><code>procedure <b><a href="blcksock.TTCPBlockSocket.html#SSLDoShutdown">SSLDoShutdown</a></b>;</code></td>
|
|---|
| 71 | </tr>
|
|---|
| 72 | <tr class="list">
|
|---|
| 73 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 74 | <td class="itemcode"><code>function <b><a href="blcksock.TTCPBlockSocket.html#SSLAcceptConnection">SSLAcceptConnection</a></b>: Boolean;</code></td>
|
|---|
| 75 | </tr>
|
|---|
| 76 | <tr class="list2">
|
|---|
| 77 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 78 | <td class="itemcode"><code>function <b><a href="blcksock.TTCPBlockSocket.html#GetLocalSinIP">GetLocalSinIP</a></b>: string; override;</code></td>
|
|---|
| 79 | </tr>
|
|---|
| 80 | <tr class="list">
|
|---|
| 81 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 82 | <td class="itemcode"><code>function <b><a href="blcksock.TTCPBlockSocket.html#GetRemoteSinIP">GetRemoteSinIP</a></b>: string; override;</code></td>
|
|---|
| 83 | </tr>
|
|---|
| 84 | <tr class="list2">
|
|---|
| 85 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 86 | <td class="itemcode"><code>function <b><a href="blcksock.TTCPBlockSocket.html#GetLocalSinPort">GetLocalSinPort</a></b>: Integer; override;</code></td>
|
|---|
| 87 | </tr>
|
|---|
| 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"><code>function <b><a href="blcksock.TTCPBlockSocket.html#GetRemoteSinPort">GetRemoteSinPort</a></b>: Integer; override;</code></td>
|
|---|
| 91 | </tr>
|
|---|
| 92 | <tr class="list2">
|
|---|
| 93 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 94 | <td class="itemcode"><code>function <b><a href="blcksock.TTCPBlockSocket.html#SendBuffer">SendBuffer</a></b>(Buffer: TMemory; Length: Integer): Integer; override;</code></td>
|
|---|
| 95 | </tr>
|
|---|
| 96 | <tr class="list">
|
|---|
| 97 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 98 | <td class="itemcode"><code>function <b><a href="blcksock.TTCPBlockSocket.html#RecvBuffer">RecvBuffer</a></b>(Buffer: TMemory; Len: Integer): Integer; override;</code></td>
|
|---|
| 99 | </tr>
|
|---|
| 100 | <tr class="list2">
|
|---|
| 101 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 102 | <td class="itemcode"><code>function <b><a href="blcksock.TTCPBlockSocket.html#GetSocketType">GetSocketType</a></b>: integer; override;</code></td>
|
|---|
| 103 | </tr>
|
|---|
| 104 | <tr class="list">
|
|---|
| 105 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 106 | <td class="itemcode"><code>function <b><a href="blcksock.TTCPBlockSocket.html#GetSocketProtocol">GetSocketProtocol</a></b>: integer; override;</code></td>
|
|---|
| 107 | </tr>
|
|---|
| 108 | <tr class="list2">
|
|---|
| 109 | <td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
|
|---|
| 110 | <td class="itemcode"><code>function <b><a href="blcksock.TTCPBlockSocket.html#GetErrorDescEx">GetErrorDescEx</a></b>: string; override;</code></td>
|
|---|
| 111 | </tr>
|
|---|
| 112 | </table>
|
|---|
| 113 | <a name="@Properties"></a><h3 class="summary">Properties</h3>
|
|---|
| 114 | <table class="summary">
|
|---|
| 115 | <tr class="list">
|
|---|
| 116 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 117 | <td class="itemcode"><code>property <b><a href="blcksock.TTCPBlockSocket.html#SSL">SSL</a></b>: <a href="blcksock.TCustomSSL.html">TCustomSSL</a> read FSSL;</code></td>
|
|---|
| 118 | </tr>
|
|---|
| 119 | <tr class="list2">
|
|---|
| 120 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 121 | <td class="itemcode"><code>property <b><a href="blcksock.TTCPBlockSocket.html#HTTPTunnel">HTTPTunnel</a></b>: Boolean read FHTTPTunnel;</code></td>
|
|---|
| 122 | </tr>
|
|---|
| 123 | <tr class="list">
|
|---|
| 124 | <td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
|
|---|
| 125 | <td class="itemcode"><code>property <b><a href="blcksock.TTCPBlockSocket.html#HTTPTunnelIP">HTTPTunnelIP</a></b>: string read FHTTPTunnelIP Write FHTTPTunnelIP;</code></td>
|
|---|
| 126 | </tr>
|
|---|
| 127 | <tr class="list2">
|
|---|
| 128 | <td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
|
|---|
| 129 | <td class="itemcode"><code>property <b><a href="blcksock.TTCPBlockSocket.html#HTTPTunnelPort">HTTPTunnelPort</a></b>: string read FHTTPTunnelPort Write FHTTPTunnelPort;</code></td>
|
|---|
| 130 | </tr>
|
|---|
| 131 | <tr class="list">
|
|---|
| 132 | <td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
|
|---|
| 133 | <td class="itemcode"><code>property <b><a href="blcksock.TTCPBlockSocket.html#HTTPTunnelUser">HTTPTunnelUser</a></b>: string read FHTTPTunnelUser Write FHTTPTunnelUser;</code></td>
|
|---|
| 134 | </tr>
|
|---|
| 135 | <tr class="list2">
|
|---|
| 136 | <td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
|
|---|
| 137 | <td class="itemcode"><code>property <b><a href="blcksock.TTCPBlockSocket.html#HTTPTunnelPass">HTTPTunnelPass</a></b>: string read FHTTPTunnelPass Write FHTTPTunnelPass;</code></td>
|
|---|
| 138 | </tr>
|
|---|
| 139 | <tr class="list">
|
|---|
| 140 | <td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
|
|---|
| 141 | <td class="itemcode"><code>property <b><a href="blcksock.TTCPBlockSocket.html#HTTPTunnelTimeout">HTTPTunnelTimeout</a></b>: integer read FHTTPTunnelTimeout Write FHTTPTunnelTimeout;</code></td>
|
|---|
| 142 | </tr>
|
|---|
| 143 | <tr class="list2">
|
|---|
| 144 | <td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
|
|---|
| 145 | <td class="itemcode"><code>property <b><a href="blcksock.TTCPBlockSocket.html#OnAfterConnect">OnAfterConnect</a></b>: <a href="blcksock.html#THookAfterConnect">THookAfterConnect</a> read FOnAfterConnect write FOnAfterConnect;</code></td>
|
|---|
| 146 | </tr>
|
|---|
| 147 | </table>
|
|---|
| 148 | <h2 class="description">Description</h2>
|
|---|
| 149 | <h3 class="detail">Methods</h3>
|
|---|
| 150 | <table class="detail">
|
|---|
| 151 | <tr class="list">
|
|---|
| 152 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 153 | <td class="itemcode"><a name="Create"></a><code>constructor <b>Create</b>;</code></td>
|
|---|
| 154 | </tr>
|
|---|
| 155 | </table>
|
|---|
| 156 | <p>
|
|---|
| 157 | Create TCP socket class with default plugin for SSL/TSL/SSH implementation (see <a class="normal" href="blcksock.html#SSLImplementation">SSLImplementation</a>)</p>
|
|---|
| 158 | <table class="detail">
|
|---|
| 159 | <tr class="list">
|
|---|
| 160 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 161 | <td class="itemcode"><a name="CreateWithSSL"></a><code>constructor <b>CreateWithSSL</b>(SSLPlugin: <a href="blcksock.html#TSSLClass">TSSLClass</a>);</code></td>
|
|---|
| 162 | </tr>
|
|---|
| 163 | </table>
|
|---|
| 164 | <p>
|
|---|
| 165 | Create TCP socket class with desired plugin for SSL/TSL/SSH implementation</p>
|
|---|
| 166 | <table class="detail">
|
|---|
| 167 | <tr class="list">
|
|---|
| 168 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 169 | <td class="itemcode"><a name="Destroy"></a><code>destructor <b>Destroy</b>; override;</code></td>
|
|---|
| 170 | </tr>
|
|---|
| 171 | </table>
|
|---|
| 172 | <table class="detail">
|
|---|
| 173 | <tr class="list">
|
|---|
| 174 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 175 | <td class="itemcode"><a name="CloseSocket"></a><code>procedure <b>CloseSocket</b>; override;</code></td>
|
|---|
| 176 | </tr>
|
|---|
| 177 | </table>
|
|---|
| 178 | <p>
|
|---|
| 179 | See <a class="normal" href="blcksock.TBlockSocket.html">TBlockSocket</a>.<a class="normal" href="blcksock.TBlockSocket.html#CloseSocket">CloseSocket</a></p>
|
|---|
| 180 | <table class="detail">
|
|---|
| 181 | <tr class="list">
|
|---|
| 182 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 183 | <td class="itemcode"><a name="WaitingData"></a><code>function <b>WaitingData</b>: Integer; override;</code></td>
|
|---|
| 184 | </tr>
|
|---|
| 185 | </table>
|
|---|
| 186 | <p>
|
|---|
| 187 | See <a class="normal" href="blcksock.TBlockSocket.html">TBlockSocket</a>.<a class="normal" href="blcksock.TBlockSocket.html#WaitingData">WaitingData</a></p>
|
|---|
| 188 | <table class="detail">
|
|---|
| 189 | <tr class="list">
|
|---|
| 190 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 191 | <td class="itemcode"><a name="Listen"></a><code>procedure <b>Listen</b>; override;</code></td>
|
|---|
| 192 | </tr>
|
|---|
| 193 | </table>
|
|---|
| 194 | <p>
|
|---|
| 195 | Sets socket to receive mode for new incoming connections. It is necessary to use <a class="normal" href="blcksock.TBlockSocket.html">TBlockSocket</a>.<a class="normal" href="blcksock.TBlockSocket.html#Bind">Bind</a> function call before this method to select receiving port!
|
|---|
| 196 |
|
|---|
| 197 | <p>If you use SOCKS, activate incoming TCP connection by this proxy. (By BIND method of SOCKS.)</p>
|
|---|
| 198 | <table class="detail">
|
|---|
| 199 | <tr class="list">
|
|---|
| 200 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 201 | <td class="itemcode"><a name="Accept"></a><code>function <b>Accept</b>: TSocket; override;</code></td>
|
|---|
| 202 | </tr>
|
|---|
| 203 | </table>
|
|---|
| 204 | <p>
|
|---|
| 205 | Waits until new incoming connection comes. After it comes a new socket is automatically created (socket handler is returned by this function as result).
|
|---|
| 206 |
|
|---|
| 207 | <p>If you use SOCKS, new socket is not created! In this case is used same socket as socket for listening! So, you can accept only one connection in SOCKS mode.</p>
|
|---|
| 208 | <table class="detail">
|
|---|
| 209 | <tr class="list">
|
|---|
| 210 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 211 | <td class="itemcode"><a name="Connect"></a><code>procedure <b>Connect</b>(IP, Port: string); override;</code></td>
|
|---|
| 212 | </tr>
|
|---|
| 213 | </table>
|
|---|
| 214 | <p>
|
|---|
| 215 | Connects socket to remote IP address and PORT. The same rules as with <a class="normal" href="blcksock.TBlockSocket.html">TBlockSocket</a>.<a class="normal" href="blcksock.TBlockSocket.html#Bind">Bind</a> method are valid. The only exception is that PORT with 0 value will not be connected. After call to this method a communication channel between local and remote socket is created. Local socket is assigned automatically if not controlled by previous call to <a class="normal" href="blcksock.TBlockSocket.html">TBlockSocket</a>.<a class="normal" href="blcksock.TBlockSocket.html#Bind">Bind</a> method. Structures <a class="normal" href="blcksock.TBlockSocket.html">TBlockSocket</a>.<a class="normal" href="blcksock.TBlockSocket.html#LocalSin">LocalSin</a> and <a class="normal" href="blcksock.TBlockSocket.html">TBlockSocket</a>.<a class="normal" href="blcksock.TBlockSocket.html#RemoteSin">RemoteSin</a> will be filled with valid values.
|
|---|
| 216 |
|
|---|
| 217 | <p>If you use SOCKS, activate outgoing TCP connection by SOCKS proxy specified in <a class="normal" href="blcksock.TSocksBlockSocket.html">TSocksBlockSocket</a>.<a class="normal" href="blcksock.TSocksBlockSocket.html#SocksIP">SocksIP</a>. (By CONNECT method of SOCKS.)
|
|---|
| 218 |
|
|---|
| 219 | <p>If you use HTTP-tunnel mode, activate outgoing TCP connection by HTTP tunnel specified in <a class="normal" href="blcksock.TTCPBlockSocket.html#HTTPTunnelIP">HTTPTunnelIP</a>. (By CONNECT method of HTTP protocol.)
|
|---|
| 220 |
|
|---|
| 221 | <p>Note: If you call this on non-created socket, then socket is created automaticly.</p>
|
|---|
| 222 | <table class="detail">
|
|---|
| 223 | <tr class="list">
|
|---|
| 224 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 225 | <td class="itemcode"><a name="SSLDoConnect"></a><code>procedure <b>SSLDoConnect</b>;</code></td>
|
|---|
| 226 | </tr>
|
|---|
| 227 | </table>
|
|---|
| 228 | <p>
|
|---|
| 229 | If you need upgrade existing TCP connection to SSL/TLS (or SSH2, if plugin allows it) mode, then call this method. This method switch this class to SSL mode and do SSL/TSL handshake.</p>
|
|---|
| 230 | <table class="detail">
|
|---|
| 231 | <tr class="list">
|
|---|
| 232 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 233 | <td class="itemcode"><a name="SSLDoShutdown"></a><code>procedure <b>SSLDoShutdown</b>;</code></td>
|
|---|
| 234 | </tr>
|
|---|
| 235 | </table>
|
|---|
| 236 | <p>
|
|---|
| 237 | By this method you can downgrade existing SSL/TLS connection to normal TCP connection.</p>
|
|---|
| 238 | <table class="detail">
|
|---|
| 239 | <tr class="list">
|
|---|
| 240 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 241 | <td class="itemcode"><a name="SSLAcceptConnection"></a><code>function <b>SSLAcceptConnection</b>: Boolean;</code></td>
|
|---|
| 242 | </tr>
|
|---|
| 243 | </table>
|
|---|
| 244 | <p>
|
|---|
| 245 | If you need use this component as SSL/TLS TCP server, then after accepting of inbound connection you need start SSL/TLS session by this method. Before call this function, you must have assigned all neeeded certificates and keys!</p>
|
|---|
| 246 | <table class="detail">
|
|---|
| 247 | <tr class="list">
|
|---|
| 248 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 249 | <td class="itemcode"><a name="GetLocalSinIP"></a><code>function <b>GetLocalSinIP</b>: string; override;</code></td>
|
|---|
| 250 | </tr>
|
|---|
| 251 | </table>
|
|---|
| 252 | <p>
|
|---|
| 253 | See <a class="normal" href="blcksock.TBlockSocket.html">TBlockSocket</a>.<a class="normal" href="blcksock.TBlockSocket.html#GetLocalSinIP">GetLocalSinIP</a></p>
|
|---|
| 254 | <table class="detail">
|
|---|
| 255 | <tr class="list">
|
|---|
| 256 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 257 | <td class="itemcode"><a name="GetRemoteSinIP"></a><code>function <b>GetRemoteSinIP</b>: string; override;</code></td>
|
|---|
| 258 | </tr>
|
|---|
| 259 | </table>
|
|---|
| 260 | <p>
|
|---|
| 261 | See <a class="normal" href="blcksock.TBlockSocket.html">TBlockSocket</a>.<a class="normal" href="blcksock.TBlockSocket.html#GetRemoteSinIP">GetRemoteSinIP</a></p>
|
|---|
| 262 | <table class="detail">
|
|---|
| 263 | <tr class="list">
|
|---|
| 264 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 265 | <td class="itemcode"><a name="GetLocalSinPort"></a><code>function <b>GetLocalSinPort</b>: Integer; override;</code></td>
|
|---|
| 266 | </tr>
|
|---|
| 267 | </table>
|
|---|
| 268 | <p>
|
|---|
| 269 | See <a class="normal" href="blcksock.TBlockSocket.html">TBlockSocket</a>.<a class="normal" href="blcksock.TBlockSocket.html#GetLocalSinPort">GetLocalSinPort</a></p>
|
|---|
| 270 | <table class="detail">
|
|---|
| 271 | <tr class="list">
|
|---|
| 272 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 273 | <td class="itemcode"><a name="GetRemoteSinPort"></a><code>function <b>GetRemoteSinPort</b>: Integer; override;</code></td>
|
|---|
| 274 | </tr>
|
|---|
| 275 | </table>
|
|---|
| 276 | <p>
|
|---|
| 277 | See <a class="normal" href="blcksock.TBlockSocket.html">TBlockSocket</a>.<a class="normal" href="blcksock.TBlockSocket.html#GetRemoteSinPort">GetRemoteSinPort</a></p>
|
|---|
| 278 | <table class="detail">
|
|---|
| 279 | <tr class="list">
|
|---|
| 280 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 281 | <td class="itemcode"><a name="SendBuffer"></a><code>function <b>SendBuffer</b>(Buffer: TMemory; Length: Integer): Integer; override;</code></td>
|
|---|
| 282 | </tr>
|
|---|
| 283 | </table>
|
|---|
| 284 | <p>
|
|---|
| 285 | See <a class="normal" href="blcksock.TBlockSocket.html">TBlockSocket</a>.<a class="normal" href="blcksock.TBlockSocket.html#SendBuffer">SendBuffer</a></p>
|
|---|
| 286 | <table class="detail">
|
|---|
| 287 | <tr class="list">
|
|---|
| 288 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 289 | <td class="itemcode"><a name="RecvBuffer"></a><code>function <b>RecvBuffer</b>(Buffer: TMemory; Len: Integer): Integer; override;</code></td>
|
|---|
| 290 | </tr>
|
|---|
| 291 | </table>
|
|---|
| 292 | <p>
|
|---|
| 293 | See <a class="normal" href="blcksock.TBlockSocket.html">TBlockSocket</a>.<a class="normal" href="blcksock.TBlockSocket.html#RecvBuffer">RecvBuffer</a></p>
|
|---|
| 294 | <table class="detail">
|
|---|
| 295 | <tr class="list">
|
|---|
| 296 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 297 | <td class="itemcode"><a name="GetSocketType"></a><code>function <b>GetSocketType</b>: integer; override;</code></td>
|
|---|
| 298 | </tr>
|
|---|
| 299 | </table>
|
|---|
| 300 | <p>
|
|---|
| 301 | Return value of socket type. For TCP return SOCK_STREAM.</p>
|
|---|
| 302 | <table class="detail">
|
|---|
| 303 | <tr class="list">
|
|---|
| 304 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 305 | <td class="itemcode"><a name="GetSocketProtocol"></a><code>function <b>GetSocketProtocol</b>: integer; override;</code></td>
|
|---|
| 306 | </tr>
|
|---|
| 307 | </table>
|
|---|
| 308 | <p>
|
|---|
| 309 | Return value of protocol type for socket creation. For TCP return IPPROTO_TCP.</p>
|
|---|
| 310 | <table class="detail">
|
|---|
| 311 | <tr class="list">
|
|---|
| 312 | <td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
|
|---|
| 313 | <td class="itemcode"><a name="GetErrorDescEx"></a><code>function <b>GetErrorDescEx</b>: string; override;</code></td>
|
|---|
| 314 | </tr>
|
|---|
| 315 | </table>
|
|---|
| 316 | <p>
|
|---|
| 317 | Return descriptive string for <code>LastError</code>. On case of error in SSL/TLS subsystem, it returns right error description.</p>
|
|---|
| 318 | <h3 class="detail">Properties</h3>
|
|---|
| 319 | <table class="detail">
|
|---|
| 320 | <tr class="list">
|
|---|
| 321 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 322 | <td class="itemcode"><a name="SSL"></a><code>property <b>SSL</b>: <a href="blcksock.TCustomSSL.html">TCustomSSL</a> read FSSL;</code></td>
|
|---|
| 323 | </tr>
|
|---|
| 324 | </table>
|
|---|
| 325 | <p>
|
|---|
| 326 | Class implementing SSL/TLS support. It is allways some descendant of <a class="normal" href="blcksock.TCustomSSL.html">TCustomSSL</a> class. When programmer not select some SSL plugin class, then is used <a class="normal" href="blcksock.TSSLNone.html">TSSLNone</a></p>
|
|---|
| 327 | <table class="detail">
|
|---|
| 328 | <tr class="list">
|
|---|
| 329 | <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
|
|---|
| 330 | <td class="itemcode"><a name="HTTPTunnel"></a><code>property <b>HTTPTunnel</b>: Boolean read FHTTPTunnel;</code></td>
|
|---|
| 331 | </tr>
|
|---|
| 332 | </table>
|
|---|
| 333 | <p>
|
|---|
| 334 | <code>True</code> if is used HTTP tunnel mode.</p>
|
|---|
| 335 | <table class="detail">
|
|---|
| 336 | <tr class="list">
|
|---|
| 337 | <td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
|
|---|
| 338 | <td class="itemcode"><a name="HTTPTunnelIP"></a><code>property <b>HTTPTunnelIP</b>: string read FHTTPTunnelIP Write FHTTPTunnelIP;</code></td>
|
|---|
| 339 | </tr>
|
|---|
| 340 | </table>
|
|---|
| 341 | <p>
|
|---|
| 342 | Specify IP address of HTTP proxy. Assingning non-empty value to this property enable HTTP-tunnel mode. This mode is for tunnelling any outgoing TCP connection through HTTP proxy server. (If policy on HTTP proxy server allow this!) Warning: You cannot combine this mode with SOCK5 mode!</p>
|
|---|
| 343 | <table class="detail">
|
|---|
| 344 | <tr class="list">
|
|---|
| 345 | <td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
|
|---|
| 346 | <td class="itemcode"><a name="HTTPTunnelPort"></a><code>property <b>HTTPTunnelPort</b>: string read FHTTPTunnelPort Write FHTTPTunnelPort;</code></td>
|
|---|
| 347 | </tr>
|
|---|
| 348 | </table>
|
|---|
| 349 | <p>
|
|---|
| 350 | Specify port of HTTP proxy for HTTP-tunneling.</p>
|
|---|
| 351 | <table class="detail">
|
|---|
| 352 | <tr class="list">
|
|---|
| 353 | <td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
|
|---|
| 354 | <td class="itemcode"><a name="HTTPTunnelUser"></a><code>property <b>HTTPTunnelUser</b>: string read FHTTPTunnelUser Write FHTTPTunnelUser;</code></td>
|
|---|
| 355 | </tr>
|
|---|
| 356 | </table>
|
|---|
| 357 | <p>
|
|---|
| 358 | Specify authorisation username for access to HTTP proxy in HTTP-tunnel mode. If you not need authorisation, then let this property empty.</p>
|
|---|
| 359 | <table class="detail">
|
|---|
| 360 | <tr class="list">
|
|---|
| 361 | <td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
|
|---|
| 362 | <td class="itemcode"><a name="HTTPTunnelPass"></a><code>property <b>HTTPTunnelPass</b>: string read FHTTPTunnelPass Write FHTTPTunnelPass;</code></td>
|
|---|
| 363 | </tr>
|
|---|
| 364 | </table>
|
|---|
| 365 | <p>
|
|---|
| 366 | Specify authorisation password for access to HTTP proxy in HTTP-tunnel mode.</p>
|
|---|
| 367 | <table class="detail">
|
|---|
| 368 | <tr class="list">
|
|---|
| 369 | <td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
|
|---|
| 370 | <td class="itemcode"><a name="HTTPTunnelTimeout"></a><code>property <b>HTTPTunnelTimeout</b>: integer read FHTTPTunnelTimeout Write FHTTPTunnelTimeout;</code></td>
|
|---|
| 371 | </tr>
|
|---|
| 372 | </table>
|
|---|
| 373 | <p>
|
|---|
| 374 | Specify timeout for communication with HTTP proxy in HTTPtunnel mode.</p>
|
|---|
| 375 | <table class="detail">
|
|---|
| 376 | <tr class="list">
|
|---|
| 377 | <td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
|
|---|
| 378 | <td class="itemcode"><a name="OnAfterConnect"></a><code>property <b>OnAfterConnect</b>: <a href="blcksock.html#THookAfterConnect">THookAfterConnect</a> read FOnAfterConnect write FOnAfterConnect;</code></td>
|
|---|
| 379 | </tr>
|
|---|
| 380 | </table>
|
|---|
| 381 | <p>
|
|---|
| 382 | This event is called after sucessful TCP socket connection.</p>
|
|---|
| 383 | <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:50</em>
|
|---|
| 384 | </span>
|
|---|
| 385 | </body></html>
|
|---|