SocketReceiveResult.cs 733 B

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