|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.network.kernel.udp.UdpEndpoint
public class UdpEndpoint
Endpoint implementation that encapsulates the UDP connection information for return messaging, identification of envelope sources, etc.
Constructor Summary | |
---|---|
UdpEndpoint(UdpKernel kernel,
long id,
java.net.SocketAddress address,
java.net.DatagramSocket socket)
|
Method Summary | |
---|---|
void |
close()
Closes this endpoint without flushing any of its currently enqueued outbound data. |
void |
close(boolean flush)
Closes this endpoint, optionally flushing any queued data before closing. |
java.lang.String |
getAddress()
Returns the transport specific remote address of this endpoint as a string. |
long |
getId()
Returns an ID that is unique for this endpoint within its Kernel instance. |
Kernel |
getKernel()
Returns the kernel to which this endpoint belongs. |
protected java.net.SocketAddress |
getRemoteAddress()
|
boolean |
isConnected()
Returns true if this endpoint is currently connected. |
void |
send(java.nio.ByteBuffer data)
Sends data to the other end of the connection represented by this endpoint. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UdpEndpoint(UdpKernel kernel, long id, java.net.SocketAddress address, java.net.DatagramSocket socket)
Method Detail |
---|
public Kernel getKernel()
Endpoint
getKernel
in interface Endpoint
protected java.net.SocketAddress getRemoteAddress()
public void close()
Endpoint
close
in interface Endpoint
public void close(boolean flush)
Endpoint
close
in interface Endpoint
public long getId()
Endpoint
getId
in interface Endpoint
public java.lang.String getAddress()
Endpoint
getAddress
in interface Endpoint
public boolean isConnected()
Endpoint
isConnected
in interface Endpoint
public void send(java.nio.ByteBuffer data)
Endpoint
send
in interface Endpoint
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |