C# Class NASAExplorer.Services.TelnetConnection

Inheritance: IDisposable
Mostrar archivo Open project: mihok/nasa-explorer Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
Handshake ( ) : bool
Login ( string Username, string Password, int LoginTimeOutMs ) : string
Read ( ) : string
ReadUntil ( string substring, int timeout = 1000 ) : string
TelnetConnection ( string Hostname, int Port ) : System
Write ( string cmd ) : void
WriteLine ( string cmd ) : void

Private Methods

Method Description
ParseTelnet ( StringBuilder sb ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Handshake() public method

public Handshake ( ) : bool
return bool

Login() public method

public Login ( string Username, string Password, int LoginTimeOutMs ) : string
Username string
Password string
LoginTimeOutMs int
return string

Read() public method

public Read ( ) : string
return string

ReadUntil() public method

public ReadUntil ( string substring, int timeout = 1000 ) : string
substring string
timeout int
return string

TelnetConnection() public method

public TelnetConnection ( string Hostname, int Port ) : System
Hostname string
Port int
return System

Write() public method

public Write ( string cmd ) : void
cmd string
return void

WriteLine() public method

public WriteLine ( string cmd ) : void
cmd string
return void