package javax.microedition.io;

import java.io.IOException;

public interface DatagramConnection extends Connection
{

 public int getMaximumLength() throws IOException;
 
 public int getNominalLength() throws IOException;
 
 public void send(Datagram) throws IOException;
 
 public void receive(Datagram) throws IOException;
 
 public Datagram newDatagram(int) throws IOException;
 
 public Datagram newDatagram(int, String) throws IOException;
 
 public Datagram newDatagram(byte[], int) throws IOException;
 
 public Datagram newDatagram(byte[], int, String) throws IOException;
 
}