org.microemu.cldc.datagram
Class Connection
java.lang.Object
org.microemu.cldc.datagram.Connection
- All Implemented Interfaces:
- javax.microedition.io.Connection, javax.microedition.io.DatagramConnection, javax.microedition.io.UDPDatagramConnection, org.microemu.microedition.io.ConnectionImplementation
public class Connection
- extends java.lang.Object
- implements javax.microedition.io.DatagramConnection, javax.microedition.io.UDPDatagramConnection, org.microemu.microedition.io.ConnectionImplementation
ConnectionImplementation for the datagram protocol (UDP).
|
Field Summary |
static java.lang.String |
PROTOCOL
The datagram protocol constant |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROTOCOL
public static final java.lang.String PROTOCOL
- The datagram protocol constant
- See Also:
- Constant Field Values
Connection
public Connection()
close
public void close()
throws java.io.IOException
- Specified by:
close in interface javax.microedition.io.Connection
- Throws:
java.io.IOException
getMaximumLength
public int getMaximumLength()
throws java.io.IOException
- Specified by:
getMaximumLength in interface javax.microedition.io.DatagramConnection
- Throws:
java.io.IOException
getNominalLength
public int getNominalLength()
throws java.io.IOException
- Specified by:
getNominalLength in interface javax.microedition.io.DatagramConnection
- Throws:
java.io.IOException
send
public void send(javax.microedition.io.Datagram dgram)
throws java.io.IOException
- Specified by:
send in interface javax.microedition.io.DatagramConnection
- Throws:
java.io.IOException
receive
public void receive(javax.microedition.io.Datagram dgram)
throws java.io.IOException
- Specified by:
receive in interface javax.microedition.io.DatagramConnection
- Throws:
java.io.IOException
newDatagram
public javax.microedition.io.Datagram newDatagram(int size)
throws java.io.IOException
- Specified by:
newDatagram in interface javax.microedition.io.DatagramConnection
- Throws:
java.io.IOException
newDatagram
public javax.microedition.io.Datagram newDatagram(int size,
java.lang.String addr)
throws java.io.IOException
- Specified by:
newDatagram in interface javax.microedition.io.DatagramConnection
- Throws:
java.io.IOException
newDatagram
public javax.microedition.io.Datagram newDatagram(byte[] buf,
int size)
throws java.io.IOException
- Specified by:
newDatagram in interface javax.microedition.io.DatagramConnection
- Throws:
java.io.IOException
newDatagram
public javax.microedition.io.Datagram newDatagram(byte[] buf,
int size,
java.lang.String addr)
throws java.io.IOException
- Specified by:
newDatagram in interface javax.microedition.io.DatagramConnection
- Throws:
java.io.IOException
getLocalAddress
public java.lang.String getLocalAddress()
throws java.io.IOException
- Specified by:
getLocalAddress in interface javax.microedition.io.UDPDatagramConnection
- Throws:
java.io.IOException
getLocalPort
public int getLocalPort()
throws java.io.IOException
- Specified by:
getLocalPort in interface javax.microedition.io.UDPDatagramConnection
- Throws:
java.io.IOException
openConnection
public javax.microedition.io.Connection openConnection(java.lang.String name,
int mode,
boolean timeouts)
throws java.io.IOException
- Specified by:
openConnection in interface org.microemu.microedition.io.ConnectionImplementation
- Throws:
java.io.IOException
Copyright © 2001-2009 MicroEmulator Team. All Rights Reserved.