C# Class CatEye.UI.Gtk.RemoteControlService

Mostrar archivo Open project: bigfatbrowncat/CatEye Class Usage Examples

Public Methods

Method Description
PackCommand ( string command, string args ) : string
RemoteControlService ( ) : System
RemoteControlService ( string address, int port ) : System
SendCommand ( string packed_command ) : bool
SendCommands ( string packed_commands ) : bool
Start ( ) : bool

Starts server if it's not started in other process.

Stop ( ) : void

Protected Methods

Method Description
OnRemoteCommandReceived ( string command, string args ) : void

Private Methods

Method Description
EncodeAndSendString ( NetworkStream stream, string str ) : void
StartServer ( ) : void
TryConnectClient ( ) : TcpClient

Method Details

OnRemoteCommandReceived() protected method

protected OnRemoteCommandReceived ( string command, string args ) : void
command string
args string
return void

PackCommand() public static method

public static PackCommand ( string command, string args ) : string
command string
args string
return string

RemoteControlService() public method

public RemoteControlService ( ) : System
return System

RemoteControlService() public method

public RemoteControlService ( string address, int port ) : System
address string
port int
return System

SendCommand() public method

public SendCommand ( string packed_command ) : bool
packed_command string
return bool

SendCommands() public method

public SendCommands ( string packed_commands ) : bool
packed_commands string
return bool

Start() public method

Starts server if it's not started in other process.
public Start ( ) : bool
return bool

Stop() public method

public Stop ( ) : void
return void