C# 클래스 WebSocketSharp.Net.HttpListener

상속: IDisposable
파일 보기 프로젝트 열기: NIAEFEUP/Kommando 1 사용 예제들

공개 메소드들

메소드 설명
Abort ( ) : void

Shuts down the HttpListener immediately.

BeginGetContext ( AsyncCallback callback, Object state ) : IAsyncResult

Begins getting an incoming request information asynchronously.

This asynchronous operation must be completed by calling the EndGetContext method. Typically, the method is invoked by the callback delegate.

Close ( ) : void

Shuts down the HttpListener.

EndGetContext ( IAsyncResult asyncResult ) : HttpListenerContext

Ends an asynchronous operation to get an incoming request information.

This method completes an asynchronous operation started by calling the BeginGetContext method.

GetContext ( ) : HttpListenerContext

Gets an incoming request information.

This method waits for an incoming request and returns the request information when received the request.

HttpListener ( ) : System

Initializes a new instance of the HttpListener class.

Start ( ) : void

Starts to receive incoming requests.

Stop ( ) : void

Stops receiving incoming requests.

비공개 메소드들

메소드 설명
AddConnection ( HttpConnection cnc ) : void
CheckDisposed ( ) : void
Cleanup ( bool force ) : void
CleanupConnections ( ) : void
CleanupContextRegistry ( ) : void
CleanupWaitQueue ( ) : void
Close ( bool force ) : void
GetContextFromQueue ( ) : HttpListenerContext
IDisposable ( ) : void

Releases all resource used by the HttpListener.

RegisterContext ( HttpListenerContext context ) : void
RemoveConnection ( HttpConnection cnc ) : void
SelectAuthenticationScheme ( HttpListenerContext context ) : AuthenticationSchemes
SendServiceUnavailable ( ) : void
UnregisterContext ( HttpListenerContext context ) : void

메소드 상세

Abort() 공개 메소드

Shuts down the HttpListener immediately.
public Abort ( ) : void
리턴 void

BeginGetContext() 공개 메소드

Begins getting an incoming request information asynchronously.
This asynchronous operation must be completed by calling the EndGetContext method. Typically, the method is invoked by the callback delegate.
/// This object has been closed. /// /// The has not been started or is stopped currently. ///
public BeginGetContext ( AsyncCallback callback, Object state ) : IAsyncResult
callback AsyncCallback /// An delegate that references the method(s) /// called when the asynchronous operation completes. ///
state Object /// An that contains a user defined object to pass to the delegate. ///
리턴 IAsyncResult

Close() 공개 메소드

Shuts down the HttpListener.
public Close ( ) : void
리턴 void

EndGetContext() 공개 메소드

Ends an asynchronous operation to get an incoming request information.
This method completes an asynchronous operation started by calling the BeginGetContext method.
/// This object has been closed. /// /// is . /// /// was not obtained by calling the method. /// /// The EndGetContext method was already called for the specified . ///
public EndGetContext ( IAsyncResult asyncResult ) : HttpListenerContext
asyncResult IAsyncResult /// An obtained by calling the method. ///
리턴 HttpListenerContext

GetContext() 공개 메소드

Gets an incoming request information.
This method waits for an incoming request and returns the request information when received the request.
/// /// The does not have any URI prefixes to listen on. /// /// /// -or- /// /// /// The has not been started or is stopped currently. /// /// /// This object has been closed. ///
public GetContext ( ) : HttpListenerContext
리턴 HttpListenerContext

HttpListener() 공개 메소드

Initializes a new instance of the HttpListener class.
public HttpListener ( ) : System
리턴 System

Start() 공개 메소드

Starts to receive incoming requests.
/// This object has been closed. ///
public Start ( ) : void
리턴 void

Stop() 공개 메소드

Stops receiving incoming requests.
/// This object has been closed. ///
public Stop ( ) : void
리턴 void