C# Class httpWebServer.HttpWebServer

ファイルを表示 Open project: happyt/webServer Class Usage Examples

Public Properties

Property Type Description
MessageHandler ProcessMessage
appCmdResponse string
appCommand string
appErrorResponse string
appFileType string
portNumber string

Public Methods

Method Description
Start ( ) : void

Creates the http server and opens listener

Stop ( ) : void

Stops listening

Protected Methods

Method Description
OnCommand ( HttpCommandArgs e ) : void

Invoke the message received event

Private Methods

Method Description
ProcessRequest ( IAsyncResult result ) : void

Process the web request

RaiseCommand ( string strMessage ) : void

Set up the parameters and raise a Reply message event

StripParameters ( string filetype ) : string

Need to take off any string after a question mark character

Method Details

OnCommand() protected method

Invoke the message received event
protected OnCommand ( HttpCommandArgs e ) : void
e HttpCommandArgs
return void

Start() public method

Creates the http server and opens listener
public Start ( ) : void
return void

Stop() public method

Stops listening
public Stop ( ) : void
return void

Property Details

MessageHandler public_oe property

public ProcessMessage MessageHandler
return ProcessMessage

appCmdResponse public_oe property

public string appCmdResponse
return string

appCommand public_oe property

public string appCommand
return string

appErrorResponse public_oe property

public string appErrorResponse
return string

appFileType public_oe property

public string appFileType
return string

portNumber public_oe property

public string portNumber
return string