org.microemu.cldc.datagram
Class Connection
java.lang.Object
org.microemu.cldc.datagram.Connection
- All Implemented Interfaces:
- Connection, DatagramConnection, UDPDatagramConnection, ConnectionImplementation
public class Connection
- extends java.lang.Object
- implements DatagramConnection, UDPDatagramConnection, 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 Connection
- Throws:
java.io.IOException
getMaximumLength
public int getMaximumLength()
throws java.io.IOException
- Specified by:
getMaximumLength in interface DatagramConnection
- Throws:
java.io.IOException
getNominalLength
public int getNominalLength()
throws java.io.IOException
- Specified by:
getNominalLength in interface DatagramConnection
- Throws:
java.io.IOException
send
public void send(Datagram dgram)
throws java.io.IOException
- Specified by:
send in interface DatagramConnection
- Throws:
java.io.IOException
receive
public void receive(Datagram dgram)
throws java.io.IOException
- Specified by:
receive in interface DatagramConnection
- Throws:
java.io.IOException
newDatagram
public Datagram newDatagram(int size)
throws java.io.IOException
- Specified by:
newDatagram in interface DatagramConnection
- Throws:
java.io.IOException
newDatagram
public Datagram newDatagram(int size,
java.lang.String addr)
throws java.io.IOException
- Specified by:
newDatagram in interface DatagramConnection
- Throws:
java.io.IOException
newDatagram
public Datagram newDatagram(byte[] buf,
int size)
throws java.io.IOException
- Specified by:
newDatagram in interface DatagramConnection
- Throws:
java.io.IOException
newDatagram
public Datagram newDatagram(byte[] buf,
int size,
java.lang.String addr)
throws java.io.IOException
- Specified by:
newDatagram in interface DatagramConnection
- Throws:
java.io.IOException
getLocalAddress
public java.lang.String getLocalAddress()
throws java.io.IOException
- Specified by:
getLocalAddress in interface UDPDatagramConnection
- Throws:
java.io.IOException
getLocalPort
public int getLocalPort()
throws java.io.IOException
- Specified by:
getLocalPort in interface UDPDatagramConnection
- Throws:
java.io.IOException
openConnection
public Connection openConnection(java.lang.String name,
int mode,
boolean timeouts)
throws java.io.IOException
- Specified by:
openConnection in interface ConnectionImplementation
- Throws:
java.io.IOException
Copyright © 2001-2010 MicroEmulator Team. All Rights Reserved.