com.jme3.network.kernel.udp
クラス UdpKernel
java.lang.Object
com.jme3.network.kernel.AbstractKernel
com.jme3.network.kernel.udp.UdpKernel
- すべての実装されたインタフェース:
- Kernel
public class UdpKernel
- extends AbstractKernel
A Kernel implementation using UDP packets.
メソッドの概要 |
void |
broadcast(Filter<? super Endpoint> filter,
java.nio.ByteBuffer data,
boolean reliable,
boolean copy)
Dispatches the data to all endpoints managed by the
kernel. |
void |
initialize()
Initializes the kernel and starts any internal processing. |
void |
terminate()
Gracefully terminates the kernel and stops any internal
daemon processing. |
クラス java.lang.Object から継承されたメソッド |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UdpKernel
public UdpKernel(java.net.InetAddress host,
int port)
UdpKernel
public UdpKernel(int port)
throws java.io.IOException
- 例外:
java.io.IOException
UdpKernel
public UdpKernel(java.net.InetSocketAddress address)
initialize
public void initialize()
- インタフェース
Kernel
の記述:
- Initializes the kernel and starts any internal processing.
terminate
public void terminate()
throws java.lang.InterruptedException
- インタフェース
Kernel
の記述:
- Gracefully terminates the kernel and stops any internal
daemon processing. This method will not return until all
internal threads have been shut down.
- 例外:
java.lang.InterruptedException
broadcast
public void broadcast(Filter<? super Endpoint> filter,
java.nio.ByteBuffer data,
boolean reliable,
boolean copy)
- Dispatches the data to all endpoints managed by the
kernel. 'routing' is currently ignored.