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