net.sourceforge.networktools.core.telnet
Class TelnetConnection

java.lang.Object
  extended by java.lang.Thread
      extended by net.sourceforge.networktools.core.telnet.TelnetConnection
All Implemented Interfaces:
java.lang.Runnable

public class TelnetConnection
extends java.lang.Thread

Author:
Geoffrey

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
static int BUFFER_SIZE
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TelnetConnection(TelnetSession telnetSession, java.net.Socket socket)
          Creates a new instance of TelnetConnection
 
Method Summary
 void closeConnection()
           
 void run()
           
 void sendData(byte[] byteData)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BUFFER_SIZE

public static final int BUFFER_SIZE
See Also:
Constant Field Values
Constructor Detail

TelnetConnection

public TelnetConnection(TelnetSession telnetSession,
                        java.net.Socket socket)
                 throws java.io.IOException
Creates a new instance of TelnetConnection

Throws:
java.io.IOException
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

sendData

public void sendData(byte[] byteData)

closeConnection

public void closeConnection()


Copyright © 2004-2008 Geoffrey De Smet. All Rights Reserved.