C# Class CClash.CClashServer

Inheritance: IDisposable
Show file Open project: artillery/cclash Class Usage Examples

Public Methods

Method Description
CClashServer ( ) : System
ConnectionThreadFn ( object con ) : void
Dispose ( ) : void
Listen ( string cachedir ) : void
MakePipeName ( string cachedir ) : string
Preflight ( string cachedir ) : bool
ProcessRequest ( CClashRequest req ) : CClashResponse
ServiceRequest ( NamedPipeServerStream nss ) : void
Stop ( ) : void

Private Methods

Method Description
Dispose ( bool disposing ) : void
NewServerThread ( string cachedir ) : void
ThreadBeforeProcessRequest ( ) : void
ThreadIsBusy ( ) : void
ThreadIsIdle ( ) : void

Method Details

CClashServer() public method

public CClashServer ( ) : System
return System

ConnectionThreadFn() public method

public ConnectionThreadFn ( object con ) : void
con object
return void

Dispose() public method

public Dispose ( ) : void
return void

Listen() public method

public Listen ( string cachedir ) : void
cachedir string
return void

MakePipeName() public static method

public static MakePipeName ( string cachedir ) : string
cachedir string
return string

Preflight() public method

public Preflight ( string cachedir ) : bool
cachedir string
return bool

ProcessRequest() public method

public ProcessRequest ( CClashRequest req ) : CClashResponse
req CClashRequest
return CClashResponse

ServiceRequest() public method

public ServiceRequest ( NamedPipeServerStream nss ) : void
nss NamedPipeServerStream
return void

Stop() public method

public Stop ( ) : void
return void