public class UDPSocketClient extends Object
| 构造器和说明 |
|---|
UDPSocketClient() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
close the UDP socket
|
protected void |
finalize() |
void |
interrupt() |
void |
sendData(byte[][] data,
int offset,
int count,
String targetHostName,
int targetPort,
long interval)
send the data by UDP
|
void |
sendData(byte[][] data,
String targetHostName,
int targetPort,
long interval)
send the data by UDP
|
public void interrupt()
public void close()
public void sendData(byte[][] data,
String targetHostName,
int targetPort,
long interval)
data - the data to be senttargetHostName - the host name of target, e.g. 192.168.1.101targetPort - the port of targetinterval - the milliseconds to between each UDP sentpublic void sendData(byte[][] data,
int offset,
int count,
String targetHostName,
int targetPort,
long interval)
data - the data to be sentoffset - the offset which data to be sentcount - the count of the datatargetHostName - the host name of target, e.g. 192.168.1.101targetPort - the port of targetinterval - the milliseconds to between each UDP sent