public interface DatagramConnection extends Connection
| Modifier and Type | Method and Description |
|---|---|
int |
getMaximumLength() |
int |
getNominalLength() |
Datagram |
newDatagram(byte[] buf,
int size) |
Datagram |
newDatagram(byte[] buf,
int size,
String addr) |
Datagram |
newDatagram(int size) |
Datagram |
newDatagram(int size,
String addr) |
void |
receive(Datagram dgram) |
void |
send(Datagram dgram) |
closeint getMaximumLength()
throws IOException
IOExceptionint getNominalLength()
throws IOException
IOExceptionDatagram newDatagram(byte[] buf, int size) throws IOException
IOExceptionDatagram newDatagram(byte[] buf, int size, String addr) throws IOException
IOExceptionDatagram newDatagram(int size) throws IOException
IOExceptionDatagram newDatagram(int size, String addr) throws IOException
IOExceptionvoid receive(Datagram dgram) throws IOException
IOExceptionvoid send(Datagram dgram) throws IOException
IOException