|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ORG.oclc.Telnet.socket.TelnetIO
Implements simple telnet io
Constructor Summary | |
TelnetIO()
|
Method Summary | |
int |
available()
Returns bytes available to be read. |
void |
connect(String address)
Connect to the remote host at the default telnet port (23). |
void |
connect(String address,
int port)
Connect to the remote host at the specified port. |
void |
disconnect()
Disconnect from remote host. |
Object |
notifyStatus(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. |
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 String toString()
public void connect(String address, int port) throws IOException
address
- the symbolic host addressport
- the numeric portdisconnect()
public void disconnect() throws IOException
connect(java.lang.String, int)
public void connect(String address) throws IOException
address
- the symbolic host addresspublic void setPeer(StatusPeer obj)
obj
- object to be notified.public int available() throws IOException
public byte[] receive() throws IOException
send(byte[])
public void send(byte[] buf) throws IOException
buf
- array of bytes to sendreceive()
public void send(byte b) throws IOException
public Object notifyStatus(Vector status)
status
- contains status information
|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |