|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TelnetClientInterface
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(java.lang.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. |
java.net.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(java.lang.String data)
send data to the remote telnet session. |
Method Detail |
---|
void connect(java.lang.String host, int port) throws TelnetClientException
host
- host machine's IP nameport
- TCP port number
TelnetClientException
- if there is an IO errorvoid disconnect() throws TelnetClientException
TelnetClientException
- if there is an IO errorchar 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.void sendString(java.lang.String data) throws TelnetClientException
data
- the string to send
TelnetClientException
- if there is an IO errorboolean isSocketInherited()
java.net.Socket getSocket()
com.sas.net.crypto.CipherInterface getCipher()
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |