Package zmq

Examples of zmq.Msg.data()


            if (count == 0)
                return 0;

            Msg msg = new Msg(4);
            msg.setFlags(Msg.MORE);
            ByteBuffer.wrap(msg.data()).putInt(count);

            int rc = msg_sink.pushMsg(msg);
            if (rc != 0) {
                if (rc != ZError.EAGAIN) {
                    decodingError();
View Full Code Here


                Msg msg = new Msg(msg_size);
                assert (msg_flags == 0);
                msg.setFlags(msg_flags);

                buffer.get(msg.data());
                int rc = msg_sink.pushMsg(msg);
                if (rc != 0) {
                    if (rc != ZError.EAGAIN)
                        decodingError();
View Full Code Here

                        success = false;
                        break;
                    }

                    if (!sentAddress) {
                        int hint = (int) msg.data()[0];
                        if (hint < 0) {
                            hint = (0xFF) & hint;
                        }
                        target = identities.get(hint % size);
                        // routing address
View Full Code Here

                        success = false;
                        break;
                    }

                    if (!recvAddress) {
                        identities.set(available++, msg.data());
                        recvAddress = true;
                        continue;
                    }

                    more = msg.hasMore();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.