public class TunneledTcpClient

Nested types: HttpResponseCodes, ProxyInfos, HttpResponse, CreateConnectionAsyncCompletedEventArgs, ProxyException

Summary

TCP-Client with support for http tunnel through http proxy server

Constructor Summary

Flags Name Summary
public TunneledTcpClient(AddressFamily addressFamily, string proxyHost, int proxyPort, string proxyUsername, string proxyPassword)

Constructor.

Method Summary

Flags Name Summary
public virtual IAsyncResult BeginConnect(string host, int port, AsyncCallback requestCallback, object state)

Open TCP connection through HTTP-Tunnel.

public virtual final void Dispose()

(undocumented)

public virtual void EndConnect(IAsyncResult asyncResult)

(undocumented)

Constructor Detail

TunneledTcpClient

public TunneledTcpClient(AddressFamily addressFamily, string proxyHost, int proxyPort, string proxyUsername, string proxyPassword)

Parameters
Name Type
addressFamily AddressFamily
proxyHost string
proxyPort int
proxyUsername string
proxyPassword string

Summary

Constructor.

Param

Host name or IP address of the proxy server.

Param

Port number to connect to the proxy server.

Param

Username for the proxy server.

Param

Password for the proxy server.

Method Detail

BeginConnect

public virtual IAsyncResult BeginConnect(string host, int port, AsyncCallback requestCallback, object state)

Flags public virtual
Return type IAsyncResult
Parameters
Name Type
host string
port int
requestCallback AsyncCallback
state object

Summary

Open TCP connection through HTTP-Tunnel.

Remarks

Method invokes method 'createConnection' asynchronously.

Param

Destination host name or IP address.

Param

Port number to connect to on the destination host.

Param

Callback

Param

Returns

Dispose

public virtual final void Dispose()

Flags public virtual final
Return type void

EndConnect

public virtual void EndConnect(IAsyncResult asyncResult)

Flags public virtual
Return type void
Parameters
Name Type
asyncResult IAsyncResult