|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.sas.net.connect.SASTelnetClient
This class implements enough of the telnet protocol to bootstrap a Connect client.
| Constructor Summary | |
SASTelnetClient()
Construct a SASTelnetClient. |
|
SASTelnetClient(Properties properties)
Construct a SASTelnetClient with a list of properties. |
|
| Method Summary | |
void |
connect(String host)
connect to the telnet daemon on the default port. |
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 inString)
send data to the remote telnet session. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SASTelnetClient(Properties properties)
ISO8859_1.
\n. When connecting to a telnet daemon running
on VMS, it is usually necessary to change this value to
\r.
\r\n.
properties - the list of propertiespublic SASTelnetClient()
| Method Detail |
public void connect(String host,
int port)
throws TelnetClientException
TelnetClientInterfaceconnect in interface TelnetClientInterfacecom.sas.net.connect.TelnetClientInterfacehost - host machine's IP nameport - TCP port numberTelnetClientException - if there is an IO error
public void disconnect()
throws TelnetClientException
TelnetClientInterfacedisconnect in interface TelnetClientInterfacecom.sas.net.connect.TelnetClientInterfaceTelnetClientException - if there is an IO error
public char receiveChar(int tioTimeout)
throws TelnetClientException
TelnetClientInterfacereceiveChar in interface TelnetClientInterfacecom.sas.net.connect.TelnetClientInterfacetioTimeout - 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 inString)
throws TelnetClientException
TelnetClientInterfacesendString in interface TelnetClientInterfacecom.sas.net.connect.TelnetClientInterfacedata - the string to sendTelnetClientException - if there is an IO errorpublic boolean isSocketInherited()
TelnetClientInterfaceisSocketInherited in interface TelnetClientInterfacecom.sas.net.connect.TelnetClientInterfacepublic Socket getSocket()
TelnetClientInterfacegetSocket in interface TelnetClientInterfacecom.sas.net.connect.TelnetClientInterfacepublic com.sas.net.crypto.CipherInterface getCipher()
TelnetClientInterfacegetCipher in interface TelnetClientInterfacecom.sas.net.connect.TelnetClientInterface
public void connect(String host)
throws TelnetClientException
host - host machine's IP nameTelnetClientException - if there is an IO error
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||