Property | Type | Description | |
---|---|---|---|
ClientSocket | Socket | ||
ClientStream | System.Stream | ||
Status | string | ||
request | Request | ||
served | int |
Method | Description | |
---|---|---|
ProxySession ( Socket socket, System.Proxy proxy, |
Start a new session thread for the incoming client.
|
|
Run ( ) : void |
Main loop for handling requests on a single proxy connection
|
|
Start ( ) : void | ||
Stop ( ) : void | ||
ToString ( ) : string |
Method | Description | |
---|---|---|
ConnectRequest ( ) : |
From the data in the request, Connect, return connection if successful.
|
|
FilterRequest ( Request request ) : void | ||
GotNewRequest ( Socket client ) : bool | ||
PrepareSocks ( |
Given a new connection to a socks proxy we initate the handshake.
|
|
ProcessRequest ( |
||
RunRequest ( ) : bool |
Process a single request Return true to keep connection open
|
|
SendResponse ( ) : bool |
Send response, headers and data, back to client
|
public ProxySession ( Socket socket, System.Proxy proxy, |
||
socket | Socket | |
proxy | System.Proxy | |
connectionManager | ||
return | System |