1 package grl.flatBufferTesting;
3 import java.util.concurrent.TimeUnit;
9 static final int NUM_MSG = 10;
10 static final String ADDRESS =
"tcp://127.0.0.1:5563";
11 public static void main(String[] args)
throws Exception {
12 long bTime = System.currentTimeMillis();
15 ZMQ.Context context = ZMQ.context(1);
16 ZMQ.Socket subscriber = context.socket(ZMQ.DEALER);
18 subscriber.connect(ADDRESS);
19 subscriber.setRcvHWM(1000000);
20 System.out.println(
"Connected to: "+ADDRESS);
24 byte [] msg = subscriber.recv();
26 System.out.println(msg);
32 long secs = TimeUnit.MILLISECONDS.toSeconds(System.currentTimeMillis()- bTime);
33 System.out.println(
"Wuserver done at " + c +
" in " + secs +
" seconds");
static void main(String[] args)