Property | Type | Description | |
---|---|---|---|
DestinationHostName | string | ||
DestinationPort | int | ||
RelayHttpProxyHost | string | ||
RelayHttpProxyOverride | string | ||
RelayHttpProxyPort | int | ||
SocketBP | |||
SocketPS |
Method | Description | |
---|---|---|
LogicLoop ( ) : bool |
Entry point to HTTP request handling
|
|
SetRelayProxy ( |
In case of a proxy chain, set the next proxy to contact
|
Method | Description | |
---|---|---|
AbstractProxyLogic ( |
Common constructor for proxies; one proxy instance is created per client connection
|
|
Connect ( string hostname, int port ) : void |
If necessary, connect the remote If SocketPS is already connected to the right host and port, the socket is reused as is. |
|
ParseDestinationHostAndPort ( |
Extract the host and port to use from either the HTTP request line, or the HTTP headers; update the request line to remove the hostname and port May modify the URI of |
|
TunnelBP ( byte msg, uint position, uint to_send ) : void |
Message packet handler for tunneling data from PS to BP
|
|
TunnelPS ( byte msg, uint position, uint to_send ) : void |
Message packet handler for tunneling data from BP to PS
|
Method | Description | |
---|---|---|
Resolve ( string hostname ) : System.Net.IPAddress[] |
protected AbstractProxyLogic ( |
||
socketBP | Client socket | |
return | System |
protected Connect ( string hostname, int port ) : void | ||
hostname | string | Remote host name |
port | int | Remote port |
return | void |
protected ParseDestinationHostAndPort ( |
||
hrl | /// The HTTP request line; the URI will be updated to remove the /// host name and port number | |
hh_rq | HttpHeaders | The HTTP request headers |
port | int | /// When this method returns, contains the request port /// |
return | string |
public SetRelayProxy ( |
||
sps | ||
return | void |
protected TunnelBP ( byte msg, uint position, uint to_send ) : void | ||
msg | byte | |
position | uint | |
to_send | uint | |
return | void |
protected TunnelPS ( byte msg, uint position, uint to_send ) : void | ||
msg | byte | |
position | uint | |
to_send | uint | |
return | void |