org.apache.commons.net.discard
public class DiscardUDPClient extends DatagramSocketClient
open
and call send
to send datagrams to the server
After you're done sending discard data, call
close()
to clean up properly.
Field Summary | |
---|---|
static int | DEFAULT_PORT The default discard port. |
Constructor Summary | |
---|---|
DiscardUDPClient() |
Method Summary | |
---|---|
void | send(byte[] data, int length, InetAddress host, int port)
Sends the specified data to the specified server at the specified port.
|
void | send(byte[] data, int length, InetAddress host)
Same as
send(data, length, host. |
void | send(byte[] data, InetAddress host)
Same as
send(data, data.length, host. |
Parameters: data The discard data to send. length The length of the data to send. Should be less than or equal to the length of the data byte array. host The address of the server. port The service port.
Throws: IOException If an error occurs during the datagram send operation.
send(data, length, host. DiscardUDPClient.DEFAULT_PORT)
.
send(data, data.length, host. DiscardUDPClient.DEFAULT_PORT)
.