Package ej.ecom.io
Interface DatagramConnection
-
- All Superinterfaces:
Connection
public interface DatagramConnection extends Connection
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetMaximumLength()intgetNominalLength()DatagramnewDatagram(byte[] buf, int size)DatagramnewDatagram(byte[] buf, int size, String addr)DatagramnewDatagram(int size)DatagramnewDatagram(int size, String addr)voidreceive(Datagram dgram)voidsend(Datagram dgram)-
Methods inherited from interface ej.ecom.io.Connection
close
-
-
-
-
Method Detail
-
getMaximumLength
int getMaximumLength() throws IOException- Throws:
IOException
-
getNominalLength
int getNominalLength() throws IOException- Throws:
IOException
-
newDatagram
Datagram newDatagram(byte[] buf, int size) throws IOException
- Throws:
IOException
-
newDatagram
Datagram newDatagram(int size) throws IOException
- Throws:
IOException
-
newDatagram
Datagram newDatagram(byte[] buf, int size, String addr) throws IOException
- Throws:
IOException
-
newDatagram
Datagram newDatagram(int size, String addr) throws IOException
- Throws:
IOException
-
receive
void receive(Datagram dgram) throws IOException
- Throws:
IOException
-
send
void send(Datagram dgram) throws IOException
- Throws:
IOException
-
-