diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-10-29 18:22:20 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-10-29 18:22:20 -0400 |
| commit | dca78b13411db96366dddfa0d68bb6d36d28ad14 (patch) | |
| tree | 7d41e670f1cadec0db9e1ed7115e151da891f7ea /RSSDP/ReceivedUdpData.cs | |
| parent | 597e27d1c6199a40398abb068282711a9cb9db1b (diff) | |
rework dlna project
Diffstat (limited to 'RSSDP/ReceivedUdpData.cs')
| -rw-r--r-- | RSSDP/ReceivedUdpData.cs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/RSSDP/ReceivedUdpData.cs b/RSSDP/ReceivedUdpData.cs new file mode 100644 index 000000000..d1c2ca3c9 --- /dev/null +++ b/RSSDP/ReceivedUdpData.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Rssdp.Infrastructure +{ + /// <summary> + /// Used by the sockets wrapper to hold raw data received from a UDP socket. + /// </summary> + public sealed class ReceivedUdpData + { + /// <summary> + /// The buffer to place received data into. + /// </summary> + public byte[] Buffer { get; set; } + + /// <summary> + /// The number of bytes received. + /// </summary> + public int ReceivedBytes { get; set; } + + /// <summary> + /// The <see cref="UdpEndPoint"/> the data was received from. + /// </summary> + public UdpEndPoint ReceivedFrom { get; set; } + } +} |
