C# Class NASAExplorer.Services.TelnetConnection

Inheritance: IDisposable
Afficher le fichier Open project: mihok/nasa-explorer Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
ParseTelnet ( StringBuilder sb ) : void

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Handshake() public méthode

public Handshake ( ) : bool
Résultat bool

Login() public méthode

public Login ( string Username, string Password, int LoginTimeOutMs ) : string
Username string
Password string
LoginTimeOutMs int
Résultat string

Read() public méthode

public Read ( ) : string
Résultat string

ReadUntil() public méthode

public ReadUntil ( string substring, int timeout = 1000 ) : string
substring string
timeout int
Résultat string

TelnetConnection() public méthode

public TelnetConnection ( string Hostname, int Port ) : System
Hostname string
Port int
Résultat System

Write() public méthode

public Write ( string cmd ) : void
cmd string
Résultat void

WriteLine() public méthode

public WriteLine ( string cmd ) : void
cmd string
Résultat void