C# 클래스 HttpServer.HttpContext

상속: IHttpContext, IDisposable
파일 보기 프로젝트 열기: NyxStudios/HttpServer 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Close void
On100Continue void
OnConnectionTimeout void
OnReceive void
OnRequest void
ParseBuffer int
Start void

공개 메소드들

메소드 설명
Disconnect ( ) : void

Disconnect context.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

HttpContext ( Socket socket, HttpServer.Messages.MessageFactoryContext context ) : System

Initializes a new instance of the HttpContext class.

보호된 메소드들

메소드 설명
CreateStream ( Socket socket ) : Stream

Create stream used to send and receive bytes from the socket.

비공개 메소드들

메소드 설명
Close ( ) : void

Close and release socket.

On100Continue ( object sender, HttpServer.Messages.ContinueEventArgs e ) : void
OnConnectionTimeout ( object state ) : void
OnReceive ( IAsyncResult ar ) : void

Interpret incoming data.

OnRequest ( object sender, HttpServer.Messages.FactoryRequestEventArgs e ) : void

A request was received from the parser.

ParseBuffer ( int bytesLeft ) : int

Parse all complete requests in buffer.

Start ( ) : void

Start content.

메소드 상세

CreateStream() 보호된 메소드

Create stream used to send and receive bytes from the socket.
Stream could not be created.
protected CreateStream ( Socket socket ) : Stream
socket Socket Socket to wrap
리턴 Stream

Disconnect() 공개 메소드

Disconnect context.
public Disconnect ( ) : void
리턴 void

Dispose() 공개 메소드

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
리턴 void

HttpContext() 공개 메소드

Initializes a new instance of the HttpContext class.
public HttpContext ( Socket socket, HttpServer.Messages.MessageFactoryContext context ) : System
socket Socket Socket received from HTTP listener.
context HttpServer.Messages.MessageFactoryContext Context used to parse incoming messages.
리턴 System