public class DiscardTCPClient extends SocketClient
connect and call getOutputStream() to retrieve the discard output stream.
Don't close the output stream when you're done writing to it. Rather, call disconnect to clean up
properly.DiscardUDPClient| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PORT
The default discard port.
|
_defaultPort_, _hostname_, _input_, _output_, _serverSocketFactory_, _socket_, _socketFactory_, _timeout_, connectTimeout, NETASCII_EOL| Constructor and Description |
|---|
DiscardTCPClient()
The default DiscardTCPClient constructor.
|
| Modifier and Type | Method and Description |
|---|---|
OutputStream |
getOutputStream()
Returns an OutputStream through which you may write data to the server.
|
_connectAction_, addProtocolCommandListener, applySocketAttributes, connect, connect, connect, connect, connect, connect, createCommandSupport, disconnect, fireCommandSent, fireReplyReceived, getCharset, getCharsetName, getCommandSupport, getConnectTimeout, getDefaultPort, getDefaultTimeout, getKeepAlive, getLocalAddress, getLocalPort, getProxy, getReceiveBufferSize, getRemoteAddress, getRemotePort, getSendBufferSize, getServerSocketFactory, getSoLinger, getSoTimeout, getTcpNoDelay, isAvailable, isConnected, removeProtocolCommandListener, setCharset, setConnectTimeout, setDefaultPort, setDefaultTimeout, setKeepAlive, setProxy, setReceiveBufferSize, setSendBufferSize, setServerSocketFactory, setSocketFactory, setSoLinger, setSoTimeout, setTcpNoDelay, verifyRemotepublic static final int DEFAULT_PORT
public DiscardTCPClient()
DEFAULT_PORT .public OutputStream getOutputStream()
disconnect to clean up properly.Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.