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) |
close
int getMaximumLength() throws IOException
IOException
int getNominalLength() throws IOException
IOException
Datagram newDatagram(byte[] buf, int size) throws IOException
IOException
Datagram newDatagram(int size) throws IOException
IOException
Datagram newDatagram(byte[] buf, int size, String addr) throws IOException
IOException
Datagram newDatagram(int size, String addr) throws IOException
IOException
void receive(Datagram dgram) throws IOException
IOException
void send(Datagram dgram) throws IOException
IOException