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
파일 보기 프로젝트 열기: jgauffin/Griffin.Framework 1 사용 예제들

공개 메소드들

메소드 설명
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