C# Class WeebIRCServerTray.HttpServer

Show file Open project: RareAMV/WeebIRC Class Usage Examples

Public Properties

Property Type Description
MessageReceivedCallback Action
defaultPage string
disconnect bool
fileDir string
homeDir string
jsonDataToSend string
listener System.Net.Sockets.TcpListener
rawJsonToSend string
runServer Thread

Public Methods

Method Description
HttpServer ( ) : System
HttpServer ( Action MessageReceivedCallback ) : System
HttpServer ( Action MessageReceivedCallback, int port ) : System
HttpServer ( int port ) : System
IsFontFile ( string filename ) : bool
IsImageFile ( string filename ) : bool
IsMediaFile ( string filename ) : bool
IsStylingFile ( string filename ) : bool
IsSubtitleFile ( string filename ) : bool
IsWebPageFile ( string filename ) : bool
JsonToSend ( string json ) : void
SendMessage ( string msg ) : void
ServerLogic ( int port ) : void
SetDefaultPage ( string fileName ) : void
SetFileDir ( string dir ) : void
SetWebHomeDir ( string dir ) : void
StopServer ( ) : void

Method Details

HttpServer() public method

public HttpServer ( ) : System
return System

HttpServer() public method

public HttpServer ( Action MessageReceivedCallback ) : System
MessageReceivedCallback Action
return System

HttpServer() public method

public HttpServer ( Action MessageReceivedCallback, int port ) : System
MessageReceivedCallback Action
port int
return System

HttpServer() public method

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

IsFontFile() public method

public IsFontFile ( string filename ) : bool
filename string
return bool

IsImageFile() public method

public IsImageFile ( string filename ) : bool
filename string
return bool

IsMediaFile() public method

public IsMediaFile ( string filename ) : bool
filename string
return bool

IsStylingFile() public method

public IsStylingFile ( string filename ) : bool
filename string
return bool

IsSubtitleFile() public method

public IsSubtitleFile ( string filename ) : bool
filename string
return bool

IsWebPageFile() public method

public IsWebPageFile ( string filename ) : bool
filename string
return bool

JsonToSend() public method

public JsonToSend ( string json ) : void
json string
return void

SendMessage() public method

public SendMessage ( string msg ) : void
msg string
return void

ServerLogic() public method

public ServerLogic ( int port ) : void
port int
return void

SetDefaultPage() public method

public SetDefaultPage ( string fileName ) : void
fileName string
return void

SetFileDir() public method

public SetFileDir ( string dir ) : void
dir string
return void

SetWebHomeDir() public method

public SetWebHomeDir ( string dir ) : void
dir string
return void

StopServer() public method

public StopServer ( ) : void
return void

Property Details

MessageReceivedCallback public property

public Action MessageReceivedCallback
return Action

defaultPage public property

public string defaultPage
return string

disconnect public static property

public static bool disconnect
return bool

fileDir public property

public string fileDir
return string

homeDir public property

public string homeDir
return string

jsonDataToSend public property

public string jsonDataToSend
return string

listener public property

public TcpListener,System.Net.Sockets listener
return System.Net.Sockets.TcpListener

rawJsonToSend public property

public string rawJsonToSend
return string

runServer public property

public Thread runServer
return Thread