SocketReceiveResult.cs 722 B

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