C# Class OpenVpnManagement.Manager

Inheritance: IDisposable
Mostra file Open project: GildedHonour/OpenVpnManagement

Public Methods

Method Description
Dispose ( ) : void
GetEcho ( ) : string
GetHelp ( ) : string
GetLog ( int n = 1 ) : string
GetLogAll ( ) : string
GetNet ( ) : string
GetPid ( ) : string
GetState ( ) : string
GetState ( int n = 1 ) : string
GetStateAll ( ) : string
GetStateOff ( ) : string
GetStatus ( ) : string
GetVersion ( ) : string
Kill ( string name ) : string
Kill ( string host, int port ) : string
Manager ( string host, int port, string ovpnFileName, string userName = null, string password = null, string openVpnExeFileName = @"C:\Program Files\OpenVPN\bin\openvpn.exe" ) : System
Mute ( ) : string
SendMalCommand ( ) : string
SendSignal ( Signal sgn ) : string
SetLogOff ( ) : string
SetLogOn ( ) : string
SetLogOnAll ( ) : string
SetStateOn ( ) : string
SetStateOnAll ( ) : string

Private Methods

Method Description
RunOpenVpnProcess ( ) : void
SendCommand ( String cmd ) : string
SendGreeting ( ) : void
TreamRetrievedString ( string s ) : string

Method Details

Dispose() public method

public Dispose ( ) : void
return void

GetEcho() public method

public GetEcho ( ) : string
return string

GetHelp() public method

public GetHelp ( ) : string
return string

GetLog() public method

public GetLog ( int n = 1 ) : string
n int
return string

GetLogAll() public method

public GetLogAll ( ) : string
return string

GetNet() public method

public GetNet ( ) : string
return string

GetPid() public method

public GetPid ( ) : string
return string

GetState() public method

public GetState ( ) : string
return string

GetState() public method

public GetState ( int n = 1 ) : string
n int
return string

GetStateAll() public method

public GetStateAll ( ) : string
return string

GetStateOff() public method

public GetStateOff ( ) : string
return string

GetStatus() public method

public GetStatus ( ) : string
return string

GetVersion() public method

public GetVersion ( ) : string
return string

Kill() public method

public Kill ( string name ) : string
name string
return string

Kill() public method

public Kill ( string host, int port ) : string
host string
port int
return string

Manager() public method

public Manager ( string host, int port, string ovpnFileName, string userName = null, string password = null, string openVpnExeFileName = @"C:\Program Files\OpenVPN\bin\openvpn.exe" ) : System
host string
port int
ovpnFileName string
userName string
password string
openVpnExeFileName string
return System

Mute() public method

public Mute ( ) : string
return string

SendMalCommand() public method

public SendMalCommand ( ) : string
return string

SendSignal() public method

public SendSignal ( Signal sgn ) : string
sgn Signal
return string

SetLogOff() public method

public SetLogOff ( ) : string
return string

SetLogOn() public method

public SetLogOn ( ) : string
return string

SetLogOnAll() public method

public SetLogOnAll ( ) : string
return string

SetStateOn() public method

public SetStateOn ( ) : string
return string

SetStateOnAll() public method

public SetStateOnAll ( ) : string
return string