C# Class BzReader.WebServer

Serves the HTTP content back to IE control
Show file Open project: synhershko/BzReader

Public Methods

Method Description
GenerateTeXUrl ( string equation ) : string

Generates a TeX equation URL using the provided equation text

GenerateUrl ( PageInfo page ) : string

Generates the URL for the given request term

ProcessRequests ( ) : void

Processes requests coming from the web browser

SendHeader ( string httpVersion, int bytesCount, string redirectLocation, Socket socket, string mime ) : void

Sends HTTP header to the client

Stop ( ) : void

Stops this instance.

Private Methods

Method Description
WebServer ( ) : System

Initializes a new instance of the WebServer class.

Method Details

GenerateTeXUrl() public method

Generates a TeX equation URL using the provided equation text
public GenerateTeXUrl ( string equation ) : string
equation string Equation text
return string

GenerateUrl() public method

Generates the URL for the given request term
public GenerateUrl ( PageInfo page ) : string
page PageInfo
return string

ProcessRequests() public method

Processes requests coming from the web browser
public ProcessRequests ( ) : void
return void

SendHeader() public method

Sends HTTP header to the client
public SendHeader ( string httpVersion, int bytesCount, string redirectLocation, Socket socket, string mime ) : void
httpVersion string Http version string
bytesCount int The number of bytes in the response stream
redirectLocation string The location to redirect the browser to
socket Socket The socket where to write to
mime string The MIME type of the response
return void

Stop() public method

Stops this instance.
public Stop ( ) : void
return void