Example #1
0
        public static ZMessage EncodeNodeSignalMessage(Int32 dealer, IList <Byte[]> message)
        {
            var result = new ZMessage {
                new ZFrame(dealer), new ZFrame((Byte)MessageType.NodeSignal)
            };

            if (message != null && message.Count != 0)
            {
                result.AddRange(message.Select(msgPart => new ZFrame(msgPart)));
            }

            return(result);
        }