SocketReceiveResult.cs 792 B

1234567891011121314151617181920212223242526272829
  1. #pragma warning disable CS1591
  2. #pragma warning disable SA1600
  3. using System.Net;
  4. namespace MediaBrowser.Model.Net
  5. {
  6. /// <summary>
  7. /// Used by the sockets wrapper to hold raw data received from a UDP socket.
  8. /// </summary>
  9. public sealed class SocketReceiveResult
  10. {
  11. /// <summary>
  12. /// The buffer to place received data into.
  13. /// </summary>
  14. public byte[] Buffer { get; set; }
  15. /// <summary>
  16. /// The number of bytes received.
  17. /// </summary>
  18. public int ReceivedBytes { get; set; }
  19. /// <summary>
  20. /// The <see cref="IPEndPoint"/> the data was received from.
  21. /// </summary>
  22. public IPEndPoint RemoteEndPoint { get; set; }
  23. public IPAddress LocalIPAddress { get; set; }
  24. }
  25. }