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