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,
java.lang.String addr) |
Datagram |
newDatagram(int size) |
Datagram |
newDatagram(int size,
java.lang.String addr) |
void |
receive(Datagram dgram) |
void |
send(Datagram dgram) |
closeint getMaximumLength()
throws java.io.IOException
java.io.IOExceptionint getNominalLength()
throws java.io.IOException
java.io.IOExceptionDatagram newDatagram(byte[] buf, int size) throws java.io.IOException
java.io.IOExceptionDatagram newDatagram(int size) throws java.io.IOException
java.io.IOExceptionDatagram newDatagram(byte[] buf, int size, java.lang.String addr) throws java.io.IOException
java.io.IOExceptionDatagram newDatagram(int size, java.lang.String addr) throws java.io.IOException
java.io.IOExceptionvoid receive(Datagram dgram) throws java.io.IOException
java.io.IOExceptionvoid send(Datagram dgram) throws java.io.IOException
java.io.IOException