Class NioKernelFactory

java.lang.Object
com.jme3.network.base.NioKernelFactory
All Implemented Interfaces:
KernelFactory

public class NioKernelFactory extends Object implements KernelFactory
KernelFactory implementation for creating TCP kernels using the NIO selector model.
Author:
Paul Speed
  • Constructor Details

    • NioKernelFactory

      public NioKernelFactory()
      Creates a TCP NIO kernel factory.
  • Method Details

    • createKernel

      public Kernel createKernel(int channel, int port) throws IOException
      Description copied from interface: KernelFactory
      Creates a kernel for the specified channel and port.
      Specified by:
      createKernel in interface KernelFactory
      Parameters:
      channel - the logical channel index
      port - the bound port
      Returns:
      the created kernel
      Throws:
      IOException - if the kernel cannot be created