Ejemplo n.º 1
0
 public void Send(ArtNetPacket packet)
 {
     SendTo(packet.ToArray(), new IPEndPoint(BroadcastAddress, Port));
 }
Ejemplo n.º 2
0
 public void SendTo(IPAddress ip, ArtNetPacket packet)
 {
     SendTo(packet.ToArray(), new IPEndPoint(ip, Port));
 }
Ejemplo n.º 3
0
 private void ProcessPacket(IPEndPoint source, ArtNetPacket packet)
 {
     if (packet != null)
     {
         if (NewPacket != null)
             NewPacket(this, new NewPacketEventArgs<ArtNetPacket>(source, packet));
     }
 }
Ejemplo n.º 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)); 
                //}
            }
        }