public final class UDPUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
UDPUtil.InboundPacket |
| Constructor and Description |
|---|
UDPUtil() |
| Modifier and Type | Method and Description |
|---|---|
static UDPUtil.InboundPacket |
receive(DatagramSocket datagramSocket,
int maxPacketSize) |
static void |
send(DatagramSocket datagramSocket,
UDPUtil.InboundPacket inboundPacket) |
public static UDPUtil.InboundPacket receive(DatagramSocket datagramSocket, int maxPacketSize) throws IOException
IOExceptionpublic static void send(DatagramSocket datagramSocket, UDPUtil.InboundPacket inboundPacket) throws IOException
IOExceptionCopyright © 2020. All rights reserved.