|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--socket.TelnetIO
Implements simple telnet io
Constructor Summary | |
TelnetIO()
|
Method Summary | |
int |
available()
Returns bytes available to be read. |
void |
connect(java.lang.String address)
Connect to the remote host at the default telnet port (23). |
void |
connect(java.lang.String address,
int port)
Connect to the remote host at the specified port. |
void |
disconnect()
Disconnect from remote host. |
java.lang.Object |
notifyStatus(java.util.Vector status)
Notify about current telnet status. |
byte[] |
receive()
Read data from the remote host. |
void |
send(byte b)
|
void |
send(byte[] buf)
Send data to the remote host. |
void |
setPeer(StatusPeer obj)
Set the object to be notified about current status. |
java.lang.String |
toString()
Return the version of TelnetIO. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public TelnetIO()
Method Detail |
public java.lang.String toString()
public void connect(java.lang.String address, int port) throws java.io.IOException
address
- the symbolic host addressport
- the numeric portdisconnect()
public void disconnect() throws java.io.IOException
connect(java.lang.String, int)
public void connect(java.lang.String address) throws java.io.IOException
address
- the symbolic host addresspublic void setPeer(StatusPeer obj)
obj
- object to be notified.public int available() throws java.io.IOException
public byte[] receive() throws java.io.IOException
send(byte[])
public void send(byte[] buf) throws java.io.IOException
buf
- array of bytes to sendreceive()
public void send(byte b) throws java.io.IOException
public java.lang.Object notifyStatus(java.util.Vector status)
status
- contains status information
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |