javax.microedition.io
Interface DatagramConnection
- All Superinterfaces:
- Connection
- All Known Subinterfaces:
- UDPDatagramConnection
public interface DatagramConnection
- extends Connection
getMaximumLength
int getMaximumLength()
throws IOException
- Throws:
IOException
getNominalLength
int getNominalLength()
throws IOException
- Throws:
IOException
receive
void receive(Datagram dgram)
throws IOException
- Throws:
IOException
InterruptedException
send
void send(Datagram dgram)
throws IOException
- Throws:
IOException
InterruptedException
newDatagram
Datagram newDatagram(int size)
throws IOException
- Throws:
IOException
IllegalArgumentException
newDatagram
Datagram newDatagram(int size,
String addr)
throws IOException
- Throws:
IOException
IllegalArgumentException
newDatagram
Datagram newDatagram(byte[] buf,
int size)
throws IOException
- Throws:
IOException
IllegalArgumentException
newDatagram
Datagram newDatagram(byte[] buf,
int size,
String addr)
throws IOException
- Throws:
IOException
IllegalArgumentException
Copyright © 2007-2010. All Rights Reserved.