| java.lang.Object org.apache.commons.net.DatagramSocketClient org.apache.commons.net.DiscardUDPClient
All known Subclasses: org.apache.commons.net.EchoUDPClient,
Method Summary | |
public void | send(byte[] data, int length, InetAddress host, int port) Sends the specified data to the specified server at the specified port.
Parameters: data - The discard data to send. Parameters: length - The length of the data to send. | public void | send(byte[] data, int length, InetAddress host) Same as
send(data, length, host. | public void | send(byte[] data, InetAddress host) Same as
send(data, data.length, host. |
DEFAULT_PORT | final public static int DEFAULT_PORT(Code) | | The default discard port. It is set to 9 according to RFC 863. **
|
DiscardUDPClient | public DiscardUDPClient()(Code) | | |
send | public void send(byte[] data, int length, InetAddress host, int port) throws IOException(Code) | | Sends the specified data to the specified server at the specified port.
Parameters: data - The discard data to send. Parameters: length - The length of the data to send. Should be less thanor equal to the length of the data byte array. Parameters: host - The address of the server. Parameters: port - The service port. exception: IOException - If an error occurs during the datagram sendoperation. |
send | public void send(byte[] data, int length, InetAddress host) throws IOException(Code) | | Same as
send(data, length, host. DiscardUDPClient.DEFAULT_PORT) .
|
send | public void send(byte[] data, InetAddress host) throws IOException(Code) | | Same as
send(data, data.length, host. DiscardUDPClient.DEFAULT_PORT) .
|
|
|