public interface IUDPSocket
extends java.io.Closeable
| Modifier and Type | Method and Description |
|---|---|
byte[] |
receive(int bufferSize)
Receive data from the socket.
|
void |
send(byte[] data)
Send the given data to the target address.
|
void send(byte[] data) throws java.io.IOException
data - The data to sendjava.io.IOException - If an I/O error occursbyte[] receive(int bufferSize)
throws java.io.IOException
bufferSize - The buffer sizejava.io.IOException - If an I/O error occurs