コード例 #1
0
 public void Send(ArtNetPacket packet)
 {
     SendTo(packet.ToArray(), new IPEndPoint(BroadcastAddress, Port));
 }
コード例 #2
0
 public void SendTo(IPAddress ip, ArtNetPacket packet)
 {
     SendTo(packet.ToArray(), new IPEndPoint(ip, Port));
 }
コード例 #3
0
 private void ProcessPacket(IPEndPoint source, ArtNetPacket packet)
 {
     if (packet != null)
     {
         if (NewPacket != null)
             NewPacket(this, new NewPacketEventArgs<ArtNetPacket>(source, packet));
     }
 }
コード例 #4
0
        private void ProcessPacket(IPEndPoint source, ArtNetPacket packet)
        {
            if (packet != null)
            {
                if (NewPacket != null)
                    NewPacket(this, new NewPacketEventArgs<ArtNetPacket>(source, packet));

                //ArtRdmPacket rdmPacket = packet as ArtRdmPacket;
                //if(rdmPacket != null && NewRdmPacket != null)
                //{
                //    RdmPacket rdm = RdmPacket.ReadPacket(new RdmBinaryReader(new MemoryStream(rdmPacket.RdmData)));
                //    NewRdmPacket(this,new NewPacketEventArgs<RdmPacket>(source,rdm)); 
                //}
            }
        }