1 package grl.flatBufferTesting;
3 import java.util.concurrent.TimeUnit;
7 static final String TOPIC =
"topic1";
8 static final int NUM_MSG = 10;
9 public static void main(String[] args)
throws Exception {
10 long bTime = System.currentTimeMillis();
13 ZMQ.Context context = ZMQ.context(1);
14 ZMQ.Socket publisher = context.socket(ZMQ.DEALER);
15 publisher.bind(
"tcp://127.0.0.1:5563");
16 publisher.setHWM(1000000);
17 publisher.setSndHWM(1000000);
21 byte [] msg = {0,1,2,3,4,(byte) c};
23 publisher.send(msg,0);
24 System.out.println(msg);
27 long secs = TimeUnit.MILLISECONDS.toSeconds(System.currentTimeMillis() - bTime);
28 System.out.println(
"Wuclient done at "+c +
" in "+secs +
" seconds");
static void main(String[] args)