| java.lang.Object org.apache.commons.net.SocketClient org.apache.commons.net.DiscardTCPClient
All known Subclasses: org.apache.commons.net.EchoTCPClient,
Field Summary | |
final public static int | DEFAULT_PORT The default discard port. |
Constructor Summary | |
public | DiscardTCPClient() The default DiscardTCPClient constructor. |
Method Summary | |
public OutputStream | getOutputStream() Returns an OutputStream through which you may write data to the server.
You should NOT close the OutputStream when you're finished
reading from it. |
DEFAULT_PORT | final public static int DEFAULT_PORT(Code) | | The default discard port. It is set to 9 according to RFC 863. **
|
DiscardTCPClient | public DiscardTCPClient()(Code) | | The default DiscardTCPClient constructor. It merely sets the default
port to DEFAULT_PORT .
|
getOutputStream | public OutputStream getOutputStream()(Code) | | Returns an OutputStream through which you may write data to the server.
You should NOT close the OutputStream when you're finished
reading from it. Rather, you should call
org.apache.commons.net.SocketClient.disconnect disconnect to clean up properly.
An OutputStream through which you can write data to the server. |
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)
|
|
|