C# Class OpenHardwareMonitor.Utilities.HttpServer

ファイルを表示 Open project: pklinef/open-hardware-monitor Class Usage Examples

Public Methods

Method Description
AddPortToFirewall ( int port ) : void
HandlePeerMessages ( object peer ) : void
HandleRequests ( ) : void
HttpServer ( Node r, int p ) : System
ListenerCallback ( IAsyncResult result ) : void
Quit ( ) : void
RunNetsh ( string args ) : void
startHTTPListener ( ) : System.Boolean
stopHTTPListener ( ) : System.Boolean

Private Methods

Method Description
GenerateTreeJSON ( Node n, int parentID ) : string
SaveAggregateData ( HttpListenerContext context ) : void
SendAggregateData ( HttpListenerContext context ) : void
SendLATJSON ( HttpListenerContext context, System.DateTime lastAccessTime ) : void
SendPeersJSON ( HttpListenerContext context ) : void
SendSensorDataJSON ( HttpListenerContext context ) : void
SendTreeJSON ( HttpListenerContext context ) : void
TimerElapsed ( object sender, System.Timers.ElapsedEventArgs e ) : void
generateJSON ( Node n ) : string
getHardwareImageFile ( OpenHardwareMonitor.GUI.HardwareNode hn ) : string
getTypeImageFile ( OpenHardwareMonitor.GUI.TypeNode tn ) : string
getcontentType ( string extension ) : string
parseDate ( String dateText, System.DateTime defaultDate ) : System.DateTime
proxyRequest ( HttpListenerContext context, String peer ) : void
returnFile ( HttpListenerContext context, string filePath ) : void
sendJSON ( HttpListenerContext context ) : void
sendSensorCSV ( HttpListenerContext context ) : void
serveResourceFile ( HttpListenerContext context, string name, string ext ) : void
serveResourceImage ( HttpListenerContext context, string name ) : void

Method Details

AddPortToFirewall() public static method

public static AddPortToFirewall ( int port ) : void
port int
return void

HandlePeerMessages() public static method

public static HandlePeerMessages ( object peer ) : void
peer object
return void

HandleRequests() public method

public HandleRequests ( ) : void
return void

HttpServer() public method

public HttpServer ( Node r, int p ) : System
r Node
p int
return System

ListenerCallback() public method

public ListenerCallback ( IAsyncResult result ) : void
result IAsyncResult
return void

Quit() public method

public Quit ( ) : void
return void

RunNetsh() public static method

public static RunNetsh ( string args ) : void
args string
return void

startHTTPListener() public method

public startHTTPListener ( ) : System.Boolean
return System.Boolean

stopHTTPListener() public method

public stopHTTPListener ( ) : System.Boolean
return System.Boolean