Class UdpKernel

java.lang.Object
com.jme3.network.kernel.AbstractKernel
com.jme3.network.kernel.udp.UdpKernel
All Implemented Interfaces:
Kernel

public class UdpKernel extends AbstractKernel
A Kernel implementation using UDP packets.
  • Constructor Details

  • Method Details

    • createHostThread

      protected UdpKernel.HostThread createHostThread()
    • initialize

      public void initialize()
      Description copied from interface: Kernel
      Initializes the kernel and starts any internal processing.
    • terminate

      public void terminate() throws InterruptedException
      Description copied from interface: Kernel
      Gracefully terminates the kernel and stops any internal daemon processing. This method will not return until all internal threads have been shut down.
      Throws:
      InterruptedException
    • broadcast

      public void broadcast(Filter<? super Endpoint> filter, ByteBuffer data, boolean reliable, boolean copy)
      Dispatches the data to all endpoints managed by the kernel. 'routing' is currently ignored.
    • getEndpoint

      protected Endpoint getEndpoint(SocketAddress address, boolean create)
    • closeEndpoint

      protected void closeEndpoint(UdpEndpoint p) throws IOException
      Called by the endpoints when they need to be closed.
      Throws:
      IOException
    • newData

      protected void newData(DatagramPacket packet)
    • enqueueWrite

      protected void enqueueWrite(Endpoint endpoint, DatagramPacket packet)