C# Class Org.Mentalis.Proxy.Http.HttpListener

Listens on a specific port on the proxy server and forwards all incoming HTTP traffic to the appropriate server.
Inheritance: Org.Mentalis.Proxy.Listener
Exibir arquivo Open project: mcorrientes/Web-Security-Toolset

Public Methods

Method Description
HttpListener ( IPAddress Address, int Port ) : System

Initializes a new instance of the HttpListener class.

For the security of your server, try to avoid to listen on every network card (IPAddress.Any). Listening on a local IP address is usually sufficient and much more secure.

HttpListener ( int Port ) : System

Initializes a new instance of the HttpListener class.

The HttpListener will start listening on all installed network cards.

NewClient_OnDataReceived ( string SendData, string RecData ) : void
OnAccept ( IAsyncResult ar ) : void

Called when there's an incoming client connection waiting to be accepted.

ToString ( ) : string

Returns a string representation of this object.

Method Details

HttpListener() public method

Initializes a new instance of the HttpListener class.
For the security of your server, try to avoid to listen on every network card (IPAddress.Any). Listening on a local IP address is usually sufficient and much more secure.
public HttpListener ( IPAddress Address, int Port ) : System
Address System.Net.IPAddress The address to listen on. You can specify IPAddress.Any to listen on all installed network cards.
Port int The port to listen on.
return System

HttpListener() public method

Initializes a new instance of the HttpListener class.
The HttpListener will start listening on all installed network cards.
public HttpListener ( int Port ) : System
Port int The port to listen on.
return System

NewClient_OnDataReceived() public method

public NewClient_OnDataReceived ( string SendData, string RecData ) : void
SendData string
RecData string
return void

OnAccept() public method

Called when there's an incoming client connection waiting to be accepted.
public OnAccept ( IAsyncResult ar ) : void
ar IAsyncResult The result of the asynchronous operation.
return void

ToString() public method

Returns a string representation of this object.
public ToString ( ) : string
return string