1 package grl.flatBufferTesting;
3 import java.nio.ByteBuffer;
11 static final int NUM_MSG = 10;
12 static final String ADDRESS =
"tcp://127.0.0.1:9998";
13 public static void main(String[] args)
throws Exception {
15 ZMQ.Context context = ZMQ.context(1);
16 ZMQ.Socket subscriber = context.socket(ZMQ.DEALER);
18 subscriber.connect(
"tcp://127.0.0.1:9998");
19 subscriber.setRcvHWM(1000000);
20 System.out.println(
"Connected to: "+ADDRESS);
25 byte[] data = subscriber.recv();
26 ByteBuffer bb = ByteBuffer.wrap(data);
29 System.out.println(
"Position "+c+
":");
30 System.out.println(position);
static void main(String[] args)
static VrepControlPoint getRootAsVrepControlPoint(ByteBuffer _bb)