C# Class TouchRemote.Core.Http.HttpServer

显示文件 Open project: pieceofsummer/TouchRemote Class Usage Examples

Private Properties

Property Type Description
IncomingConnection void
IncomingConnection6 void
ListenerThread void
WorkerConnection void

Public Methods

Method Description
HttpServer ( ushort port ) : System
Start ( ) : void
Stop ( ) : void
WaitForConnectionsClosed ( System.TimeSpan waitFor ) : void

Protected Methods

Method Description
HasPostData ( string method ) : bool?
IsValidProtocol ( string protocol, string version ) : bool
LogError ( Exception error ) : void
LogMessage ( string format ) : void

Private Methods

Method Description
IncomingConnection ( IAsyncResult ar ) : void
IncomingConnection6 ( IAsyncResult ar ) : void
ListenerThread ( ) : void
WorkerConnection ( object state ) : void

Method Details

HasPostData() protected method

protected HasPostData ( string method ) : bool?
method string
return bool?

HttpServer() public method

public HttpServer ( ushort port ) : System
port ushort
return System

IsValidProtocol() protected method

protected IsValidProtocol ( string protocol, string version ) : bool
protocol string
version string
return bool

LogError() protected method

protected LogError ( Exception error ) : void
error System.Exception
return void

LogMessage() protected method

protected LogMessage ( string format ) : void
format string
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

WaitForConnectionsClosed() public method

public WaitForConnectionsClosed ( System.TimeSpan waitFor ) : void
waitFor System.TimeSpan
return void