|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.net.telnet.TelnetTestSimpleServer
public class TelnetTestSimpleServer
Simple TCP server. Waits for connections on a TCP port in a separate thread.
| Constructor Summary | |
|---|---|
TelnetTestSimpleServer(int port)
test of client-driven subnegotiation. |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TelnetTestSimpleServer(int port)
throws IOException
port - - server port on which to listen.
IOException| Method Detail |
|---|
public void run()
run in interface Runnablepublic void disconnect()
public void stop()
public InputStream getInputStream()
throws IOException
IOException
public OutputStream getOutputStream()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||