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
Afficher le fichier Open project: mcorrientes/Web-Security-Toolset

Méthodes publiques

Méthode 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 méthode

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.
Résultat System

HttpListener() public méthode

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.
Résultat System

NewClient_OnDataReceived() public méthode

public NewClient_OnDataReceived ( string SendData, string RecData ) : void
SendData string
RecData string
Résultat void

OnAccept() public méthode

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.
Résultat void

ToString() public méthode

Returns a string representation of this object.
public ToString ( ) : string
Résultat string