C# Class HitProxy.Session.ProxySession

Mostra file Open project: hultqvist/HitProxy Class Usage Examples

Public Properties

Property Type Description
ClientSocket Socket
ClientStream System.Stream
Status string
request Request
served int

Public Methods

Method Description
ProxySession ( Socket socket, System.Proxy proxy, ConnectionManager connectionManager ) : System

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

Private Methods

Method Description
ConnectRequest ( ) : CachedConnection

From the data in the request, Connect, return connection if successful.

FilterRequest ( Request request ) : void
GotNewRequest ( Socket client ) : bool
PrepareSocks ( CachedConnection remoteConnection ) : void

Given a new connection to a socks proxy we initate the handshake.

ProcessRequest ( CachedConnection remoteConnection ) : bool
RunRequest ( ) : bool

Process a single request Return true to keep connection open

SendResponse ( ) : bool

Send response, headers and data, back to client

Method Details

ProxySession() public method

Start a new session thread for the incoming client.
public ProxySession ( Socket socket, System.Proxy proxy, ConnectionManager connectionManager ) : System
socket Socket
proxy System.Proxy
connectionManager HitProxy.Connection.ConnectionManager
return System

Run() public method

Main loop for handling requests on a single proxy connection
public Run ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

ToString() public method

public ToString ( ) : string
return string

Property Details

ClientSocket public_oe property

public Socket ClientSocket
return Socket

ClientStream public_oe property

public Stream,System ClientStream
return System.Stream

Status public_oe property

public string Status
return string

request public_oe property

Current request being served
public Request request
return Request

served public_oe property

public int served
return int