javax.microedition.io
Interface DatagramConnection

All Superinterfaces:
Connection
All Known Subinterfaces:
UDPDatagramConnection


public interface DatagramConnection
extends Connection

Standard Java interface.

Compliance: CLDC: 1.0 complete


Method Summary
 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)
           
 
Methods inherited from interface javax.microedition.io.Connection
close
 

Method Detail

getMaximumLength

int getMaximumLength()
                     throws IOException
Throws:
IOException

getNominalLength

int getNominalLength()
                     throws IOException
Throws:
IOException

send

void send(Datagram dgram)
          throws IOException
Throws:
IOException

receive

void receive(Datagram dgram)
             throws IOException
Throws:
IOException

newDatagram

Datagram newDatagram(int size)
                     throws IOException
Throws:
IOException

newDatagram

Datagram newDatagram(int size,
                     String addr)
                     throws IOException
Throws:
IOException

newDatagram

Datagram newDatagram(byte[] buf,
                     int size)
                     throws IOException
Throws:
IOException

newDatagram

Datagram newDatagram(byte[] buf,
                     int size,
                     String addr)
                     throws IOException
Throws:
IOException