[zeromq-dev] jeromq in andorid

ljs linjson at 163.com
Tue Oct 22 10:54:33 CEST 2013


Why JEROMQ ANDROID machines in use can not receive messages sent PUB end of it, my code is as follows:
Ctx ctx = ZMQ.zmq_init(1);
SocketBase sub = ZMQ.zmq_socket(ctx, ZMQ.ZMQ_SUB);
sub.setsockopt(ZMQ.ZMQ_SUBSCRIBE, "".getBytes());
sub.connect("tcp://192.168.119.100:18085");
while (true) {
Msg msg = sub.recv(0);
System.out.println(new String(msg.data()));


}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20131022/0069543c/attachment.htm>


More information about the zeromq-dev mailing list