com.mindbright.net.telnet
Class TelnetTerminalAdapter
java.lang.Object
|
+--com.mindbright.terminal.TerminalInputChaff
|
+--com.mindbright.net.telnet.TelnetTerminalAdapter
- All Implemented Interfaces:
- java.lang.Runnable, TelnetEventHandler, TerminalInputListener
- Direct Known Subclasses:
- ModuleTelnet.ChaffedTelnet
- public class TelnetTerminalAdapter
- extends TerminalInputChaff
- implements TelnetEventHandler
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TelnetTerminalAdapter
public TelnetTerminalAdapter(java.io.InputStream in,
java.io.OutputStream out,
Terminal terminal)
getTelnetNVT
public TelnetNVT getTelnetNVT()
isBuffered
public boolean isBuffered()
interpretAsCommand
public void interpretAsCommand(int cmd)
- Specified by:
interpretAsCommand in interface TelnetEventHandler
optionSubNegotiation
public void optionSubNegotiation(int option,
byte[] params)
throws java.io.IOException
- Specified by:
optionSubNegotiation in interface TelnetEventHandler
java.io.IOException
optionNegotiation
public boolean optionNegotiation(int option,
int request)
throws java.io.IOException
- Specified by:
optionNegotiation in interface TelnetEventHandler
java.io.IOException
receiveData
public void receiveData(byte b)
- Specified by:
receiveData in interface TelnetEventHandler
sendTypedChar
protected void sendTypedChar(int c)
- Specified by:
sendTypedChar in class TerminalInputChaff
sendFakeChar
protected void sendFakeChar()
- Specified by:
sendFakeChar in class TerminalInputChaff
sendBytes
public void sendBytes(byte[] b)
- Specified by:
sendBytes in interface TerminalInputListener
signalWindowChanged
public void signalWindowChanged(int rows,
int cols,
int vpixels,
int hpixels)
- Specified by:
signalWindowChanged in interface TerminalInputListener