Ejemplo n.º 1
0
        public void Send(Int16 universeID, byte[] data)
        {
            SACNPacket packet = new SACNPacket(universeID, SourceName, UUID, sequenceID++, data);

            byte[]     packetBytes = packet.ToArray();
            SACNPacket parsed      = SACNPacket.Parse(packetBytes);

            Socket.Send(packetBytes, packetBytes.Length, GetEndPoint(universeID, Port));
        }
Ejemplo n.º 2
0
 public PacketReceivedEventArgs(SACNPacket packet)
 {
     Packet = packet;
 }
Ejemplo n.º 3
0
        private void Socket_PacketReceived(object sender, PacketReceivedArgs e)
        {
            SACNPacket packet = SACNPacket.Parse(e.Packet);

            OnReceive?.Invoke(this, new PacketReceivedEventArgs(packet));
        }