WARNING: This server provides a static reference view of the NetKernel documentation. Links to dynamic content do not work. For the best experience we recommend you install NetKernel and view the documentation in the live system .

The 0MQ tunnel uses the JeroMQ pure Java port of the 0MQ protocol.

The implementation of this tunnel currently has a high latency even through it's throughput is high. We hope to improve this when possible with a deeper understanding of 0MQ.

Client-side tunnel

<accessor>
  <prototype>NKPClient</prototype>
  <config>
    <passByValue>true</passByValue>
    <tunnel factory="com.ten60.netkernel.nkp.zeromq.ZeroMQNKPTunnelFactory">
      <url>tcp://localhost:10602</url>
    </tunnel>
  </config>
</accessor>

Supported configuration options are:

  • url - tcp URL of server
  • heartbeatSendPeriod - period to send hearbeat pings to server
  • heartbeatReceivePeriod - period to expect heartbeats from server - if they are not heard client will assume connection is lost.

Server-side tunnel

<transport>
  <prototype>NKPServer</prototype>
  <config>
    <tunnel factory="com.ten60.netkernel.nkp.zeromq.ZeroMQNKPTunnelFactory">
      <url>tcp://*:10602</url>
    </tunnel>
  </config>
</transport>

Supported configuration options are:

  • url - tcp URL to bind server to
  • heartbeatSendPeriod - period to send hearbeat pings to each connected client
  • heartbeatReceivePeriod - period to expect heartbeats from each client - if they are not heard server will assume connection is lost.