public class TerminalClient extends Object
| Constructor and Description |
|---|
TerminalClient(String terminalHost,
int terminalPort) |
TerminalClient(String myName,
String terminalHost,
int terminalPort) |
| Modifier and Type | Method and Description |
|---|---|
String |
ask(String msg) |
void |
close() |
ArrayList<String> |
getAvailableSRVFiles()
Returns a list of available SRV configuration files.
|
static ArrayList<String> |
getAvailableSRVFiles(String terminalHost,
int terminalPort)
Connects to the Terminal Server and returns a list of available SRV configuration files.
|
String |
getTSName() |
static void |
main(String[] args) |
public String tsVersion
public TerminalClient(String terminalHost, int terminalPort) throws IOException
IOExceptionpublic TerminalClient(String myName, String terminalHost, int terminalPort) throws IOException
IOExceptionpublic String getTSName()
public String ask(String msg) throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic ArrayList<String> getAvailableSRVFiles() throws IOException
IOException - thrown in case of communication errorpublic static void main(String[] args) throws IOException
IOExceptionpublic static ArrayList<String> getAvailableSRVFiles(String terminalHost, int terminalPort) throws IOException
terminalHost - TS host IP address.terminalPort - TS port numberIOException - thrown in case of communication error