java.lang.Object
|
+--org.apache.commons.net.DatagramSocketClient
|
+--org.apache.commons.net.DiscardUDPClient
|
+--org.apache.commons.net.EchoUDPClient
EchoTCPClient
DiscardUDPClient
static int | The default echo port. |
int | receive(byte[] data, int length) Receives echoed data and returns its length. |
int | receive(byte[] data) Same as receive(data, data.length) ** |
void | send(byte[] data, int length, InetAddress host) Sends the specified data to the specified server at the default echo port. |
void | send(byte[] data, InetAddress host) Same as send(data, data.length, host) ** |
public static final int DEFAULT_PORT
public int receive(byte[] data)
receive(data, data.length) **public int receive(byte[] data, int length)
- If an error occurs while receiving the data.public void send(byte[] data, InetAddress host)
send(data, data.length, host) **public void send(byte[] data, int length, InetAddress host)
- If an error occurs during the datagram send
operation.