|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
interface that must be supported by a Telnet client if it is to be used by
com.sas.net.connect.TelnetConnectClient.
TelnetConnectClient| Method Summary | |
void |
connect(String host,
int port)
connect to the telnet daemon. |
void |
disconnect()
disconnect from the telnet daemon. |
com.sas.net.crypto.CipherInterface |
getCipher()
get the cipher object used by the telnet client. |
Socket |
getSocket()
get the socket used by the telnet client. |
boolean |
isSocketInherited()
true if the ConnectClient should inherit the socket used for the telnet connection. |
char |
receiveChar(int tioTimeout)
receive data from the remote telnet session. |
void |
sendString(String data)
send data to the remote telnet session. |
| Method Detail |
public void connect(String host,
int port)
throws TelnetClientException
host - host machine's IP nameport - TCP port numberTelnetClientException - if there is an IO error
public void disconnect()
throws TelnetClientException
TelnetClientException - if there is an IO error
public char receiveChar(int tioTimeout)
throws TelnetClientException
tioTimeout - number of milliseconds to wait for a character to
arrive before throwing an exception. 0 means wait
indefinitely.TelnetClientException - if there is an IO error
or if a character does not arrive in the allowed time.
public void sendString(String data)
throws TelnetClientException
data - the string to sendTelnetClientException - if there is an IO errorpublic boolean isSocketInherited()
public Socket getSocket()
public com.sas.net.crypto.CipherInterface getCipher()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||