ReceivedUdpData.cs 680 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Rssdp.Infrastructure
  7. {
  8. /// <summary>
  9. /// Used by the sockets wrapper to hold raw data received from a UDP socket.
  10. /// </summary>
  11. public sealed class ReceivedUdpData
  12. {
  13. /// <summary>
  14. /// The buffer to place received data into.
  15. /// </summary>
  16. public byte[] Buffer { get; set; }
  17. /// <summary>
  18. /// The number of bytes received.
  19. /// </summary>
  20. public int ReceivedBytes { get; set; }
  21. /// <summary>
  22. /// The <see cref="UdpEndPoint"/> the data was received from.
  23. /// </summary>
  24. public UdpEndPoint ReceivedFrom { get; set; }
  25. }
  26. }