public class TelnetTestSimpleServer extends Object implements Runnable
| Constructor and Description |
|---|
TelnetTestSimpleServer(int port)
test of client-driven subnegotiation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect()
Disconnects the client socket
|
InputStream |
getInputStream()
Gets the input stream for the client socket
|
OutputStream |
getOutputStream()
Gets the output stream for the client socket
|
void |
run()
Run for the thread.
|
void |
stop()
Stop the listener thread
|
public TelnetTestSimpleServer(int port) throws IOException
port - - server port on which to listen.IOExceptionpublic void run()
public void disconnect()
public void stop()
public InputStream getInputStream() throws IOException
IOExceptionpublic OutputStream getOutputStream() throws IOException
IOExceptionCopyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.