C# Класс Griffin.Net.Protocols.Http.HttpListener

HTTP listener

Will produce HttpRequest unless you change the BodyDecoder property, which will make the listener produce HttpRequest instead.

Наследование: ChannelTcpListener
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
HttpListener ( ) : System

Initializes a new instance of the HttpListener class.

HttpListener ( ChannelTcpListenerConfiguration configuration ) : System

Initializes a new instance of the HttpListener class.

Start ( IPAddress address, int port ) : void

Start this listener

Защищенные методы

Метод Описание
OnClientConnected ( ITcpChannel channel ) : ClientConnectedEventArgs

A client has connected (nothing has been sent or received yet)

OnMessage ( ITcpChannel source, object msg ) : void

Receive a new message from the specified client

Приватные методы

Метод Описание
OnDecoderFailure ( ITcpChannel channel, Exception error ) : void

Описание методов

HttpListener() публичный Метод

Initializes a new instance of the HttpListener class.
public HttpListener ( ) : System
Результат System

HttpListener() публичный Метод

Initializes a new instance of the HttpListener class.
public HttpListener ( ChannelTcpListenerConfiguration configuration ) : System
configuration ChannelTcpListenerConfiguration
Результат System

OnClientConnected() защищенный Метод

A client has connected (nothing has been sent or received yet)
protected OnClientConnected ( ITcpChannel channel ) : ClientConnectedEventArgs
channel ITcpChannel Channel which we created for the remote socket.
Результат ClientConnectedEventArgs

OnMessage() защищенный Метод

Receive a new message from the specified client
protected OnMessage ( ITcpChannel source, object msg ) : void
source ITcpChannel Channel for the client
msg object Message (as decoded by the specified ).
Результат void

Start() публичный Метод

Start this listener
public Start ( IPAddress address, int port ) : void
address System.Net.IPAddress Address to accept connections on
port int Port to use. Set to 0 to let the OS decide which port to use.
Результат void