public class ConnectionOverUDP extends java.lang.Object implements Connection
Constructor and Description |
---|
ConnectionOverUDP(UDPEndPointDst dst)
Construct a ConnectionOverUDP given a UDPEndPointDst
|
ConnectionOverUDP(UDPEndPointSrc src)
Construct a ConnectionOverUDP given a UDPEndPointSrc
|
Modifier and Type | Method and Description |
---|---|
boolean |
connect()
Connect.
|
Address |
getAddress()
Get the Address for this connection.
|
EndPoint |
getEndPoint()
Get the EndPoint of this Connection.
|
java.net.DatagramSocket |
getSocket()
Get the DatagramSocket.
|
Datagram |
readDatagram()
Read a Datagram.
|
boolean |
sendDatagram(Datagram dg)
Send a Datagram.
|
Connection |
setAddress(Address addr)
Set the Address for this connection.
|
java.lang.String |
toString()
To String
|
public ConnectionOverUDP(UDPEndPointSrc src) throws java.io.IOException
java.io.IOException
public ConnectionOverUDP(UDPEndPointDst dst) throws java.io.IOException
java.io.IOException
public boolean connect() throws java.io.IOException
connect
in interface Connection
java.io.IOException
public Address getAddress()
getAddress
in interface Connection
public Connection setAddress(Address addr)
setAddress
in interface Connection
public boolean sendDatagram(Datagram dg)
sendDatagram
in interface Connection
public Datagram readDatagram()
readDatagram
in interface Connection
public EndPoint getEndPoint()
getEndPoint
in interface Connection
public java.net.DatagramSocket getSocket()
public java.lang.String toString()
toString
in class java.lang.Object
User Space Routing 0.10.3