| java.lang.Object org.apache.commons.net.SocketClient org.apache.commons.net.DiscardTCPClient org.apache.commons.net.EchoTCPClient
Field Summary | |
final public static int | DEFAULT_PORT The default echo port. |
Constructor Summary | |
public | EchoTCPClient() The default EchoTCPClient constructor. |
Method Summary | |
public InputStream | getInputStream() Returns an InputStream from which you may read echoed data from
the server. |
DEFAULT_PORT | final public static int DEFAULT_PORT(Code) | | The default echo port. It is set to 7 according to RFC 862. **
|
EchoTCPClient | public EchoTCPClient()(Code) | | The default EchoTCPClient constructor. It merely sets the default
port to DEFAULT_PORT .
|
getInputStream | public InputStream getInputStream()(Code) | | Returns an InputStream from which you may read echoed data from
the server. You should NOT close the InputStream when you're finished
reading from it. Rather, you should call
org.apache.commons.net.SocketClient.disconnect disconnect to clean up properly.
An InputStream from which you can read echoed data from theserver. |
Fields inherited from org.apache.commons.net.DiscardTCPClient | final public static int DEFAULT_PORT(Code)(Java Doc)
|
Methods inherited from org.apache.commons.net.SocketClient | protected void _connectAction_() throws IOException(Code)(Java Doc) public void connect(InetAddress host, int port) throws SocketException, IOException(Code)(Java Doc) public void connect(String hostname, int port) throws SocketException, IOException(Code)(Java Doc) public void connect(InetAddress host, int port, InetAddress localAddr, int localPort) throws SocketException, IOException(Code)(Java Doc) public void connect(String hostname, int port, InetAddress localAddr, int localPort) throws SocketException, IOException(Code)(Java Doc) public void connect(InetAddress host) throws SocketException, IOException(Code)(Java Doc) public void connect(String hostname) throws SocketException, IOException(Code)(Java Doc) public void disconnect() throws IOException(Code)(Java Doc) public int getDefaultPort()(Code)(Java Doc) public int getDefaultTimeout()(Code)(Java Doc) public InetAddress getLocalAddress()(Code)(Java Doc) public int getLocalPort()(Code)(Java Doc) public InetAddress getRemoteAddress()(Code)(Java Doc) public int getRemotePort()(Code)(Java Doc) public int getSoLinger() throws SocketException(Code)(Java Doc) public int getSoTimeout() throws SocketException(Code)(Java Doc) public boolean getTcpNoDelay() throws SocketException(Code)(Java Doc) public boolean isConnected()(Code)(Java Doc) public void setDefaultPort(int port)(Code)(Java Doc) public void setDefaultTimeout(int timeout)(Code)(Java Doc) public void setSoLinger(boolean on, int val) throws SocketException(Code)(Java Doc) public void setSoTimeout(int timeout) throws SocketException(Code)(Java Doc) public void setSocketFactory(SocketFactory factory)(Code)(Java Doc) public void setTcpNoDelay(boolean on) throws SocketException(Code)(Java Doc) public boolean verifyRemote(Socket socket)(Code)(Java Doc)
|
|
|