com.jme3.network.kernel.udp
クラス UdpEndpoint

java.lang.Object
  上位を拡張 com.jme3.network.kernel.udp.UdpEndpoint
すべての実装されたインタフェース:
Endpoint

public class UdpEndpoint
extends java.lang.Object
implements Endpoint

Endpoint implementation that encapsulates the UDP connection information for return messaging, identification of envelope sources, etc.


コンストラクタの概要
UdpEndpoint(UdpKernel kernel, long id, java.net.SocketAddress address, java.net.DatagramSocket socket)
           
 
メソッドの概要
 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.
 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()
           
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

UdpEndpoint

public UdpEndpoint(UdpKernel kernel,
                   long id,
                   java.net.SocketAddress address,
                   java.net.DatagramSocket socket)
メソッドの詳細

getKernel

public Kernel getKernel()
インタフェース Endpoint の記述:
Returns the kernel to which this endpoint belongs.

定義:
インタフェース Endpoint 内の getKernel

close

public void close()
インタフェース Endpoint の記述:
Closes this endpoint without flushing any of its currently enqueued outbound data.

定義:
インタフェース Endpoint 内の close

close

public void close(boolean flush)
インタフェース Endpoint の記述:
Closes this endpoint, optionally flushing any queued data before closing. As soon as this method is called, ne send() calls will fail with an exception... even while close() is still flushing the earlier queued messages.

定義:
インタフェース Endpoint 内の close

getId

public long getId()
インタフェース Endpoint の記述:
Returns an ID that is unique for this endpoint within its Kernel instance.

定義:
インタフェース Endpoint 内の getId

getAddress

public java.lang.String getAddress()
インタフェース Endpoint の記述:
Returns the transport specific remote address of this endpoint as a string. This may or may not be unique per endpoint depending on the type of transport.

定義:
インタフェース Endpoint 内の getAddress

isConnected

public boolean isConnected()
インタフェース Endpoint の記述:
Returns true if this endpoint is currently connected.

定義:
インタフェース Endpoint 内の isConnected

send

public void send(java.nio.ByteBuffer data)
インタフェース Endpoint の記述:
Sends data to the other end of the connection represented by this endpoint.

定義:
インタフェース Endpoint 内の send

toString

public java.lang.String toString()
オーバーライド:
クラス java.lang.Object 内の toString