コード例 #1
0
        public override void ReadData(ArtNetBinaryReader data)
        {
            base.ReadData(data);

            data.BaseStream.Seek(9, System.IO.SeekOrigin.Current);
            Net = data.ReadByte();
            Command = (ArtTodControlCommand) data.ReadByte();
            Address = data.ReadByte();
        }
コード例 #2
0
        public virtual void ReadData(ArtNetBinaryReader data)
        {
            Protocol = data.ReadNetworkString(8);
            OpCode = (ArtNetOpCodes)data.ReadNetwork16();

            //For some reason the poll packet header does not include the version.
            if (OpCode != ArtNetOpCodes.PollReply)
                Version = data.ReadNetwork16();

        }
コード例 #3
0
        public override void ReadData(ArtNetBinaryReader data)
        {
            base.ReadData(data);

            data.BaseStream.Seek(9, System.IO.SeekOrigin.Current);
            Net = data.ReadByte();
            Command = data.ReadByte();
            int count = data.ReadByte();
            RequestedUniverses = new List<byte>(data.ReadBytes(count));
        }
コード例 #4
0
        public override void ReadData(ArtNetBinaryReader data)
        {
            base.ReadData(data);

            Sequence = data.ReadByte();
            Physical = data.ReadByte();
            Universe = data.ReadInt16();
            int length = data.ReadNetwork16();
            DmxData = data.ReadBytes(length);
        }
コード例 #5
0
        public override void ReadData(ArtNetBinaryReader data)
        {
            base.ReadData(data);

            RdmVersion = data.ReadByte();
            data.BaseStream.Seek(8, System.IO.SeekOrigin.Current);
            Net = data.ReadByte();
            Command = data.ReadByte();
            Address = data.ReadByte();
            SubStartCode = data.ReadByte();
            RdmData = data.ReadBytes((int) (data.BaseStream.Length - data.BaseStream.Position));
        }
コード例 #6
0
        public override void ReadData(ArtNetBinaryReader data)
        {
            var reader = new ArtNetBinaryReader(data.BaseStream);

            base.ReadData(data);

            RdmVersion = data.ReadByte();
            Port = data.ReadByte();
            data.BaseStream.Seek(7, System.IO.SeekOrigin.Current);
            Net = data.ReadByte();
            Command = data.ReadByte();
            Universe = data.ReadByte();
            UIdTotal = reader.ReadNetwork16();
            BlockCount = data.ReadByte();

            Devices = new List<UId>();
            int count = data.ReadByte();
            for (int n = 0; n < count; n++)
                Devices.Add(reader.ReadUId());
        }
コード例 #7
0
 public ArtNetPacket(ArtNetRecieveData data)
 {
     ArtNetBinaryReader packetReader = new ArtNetBinaryReader(new MemoryStream(data.buffer));
     ReadData(packetReader);
 }
コード例 #8
0
        public override void ReadData(ArtNetBinaryReader data)
        {
            base.ReadData(data);

            IpAddress = data.ReadBytes(4);
            Port = data.ReadInt16();
            FirmwareVersion = data.ReadNetwork16();
            NetSwitch = data.ReadByte();
            SubSwitch = data.ReadByte();
            Oem = data.ReadNetwork16();
            UbeaVersion = data.ReadByte();
            Status = (PollReplyStatus)data.ReadByte();
            //Status = data.ReadByte();
            EstaCode = data.ReadNetwork16();
            ShortName = data.ReadNetworkString(18);
            LongName = data.ReadNetworkString(64);
            NodeReport = data.ReadNetworkString(64);
            PortCount = data.ReadNetwork16();
            PortTypes = data.ReadBytes(4);
            GoodInput = data.ReadBytes(4);
            GoodOutput = data.ReadBytes(4);
            SwIn = data.ReadBytes(4);
            SwOut = data.ReadBytes(4);
            SwVideo = data.ReadByte();
            SwMacro = data.ReadByte();
            SwRemote = data.ReadByte();
            data.ReadBytes(3);
            Style = data.ReadByte();
            MacAddress = data.ReadBytes(6);
            BindIpAddress = data.ReadBytes(4);
            BindIndex = data.ReadByte();
            Status2 = data.ReadByte();
        }
コード例 #9
0
        public override void ReadData(ArtNetBinaryReader data)
        {
            base.ReadData(data);

            TalkToMe = data.ReadByte();
        }