aboutsummaryrefslogtreecommitdiff
path: root/Emby.Common.Implementations/Net/UdpSocket.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2017-06-01 03:56:03 -0400
committerGitHub <noreply@github.com>2017-06-01 03:56:03 -0400
commitb54b7871e39e197d4af19a6c502938fa6178c4fa (patch)
tree82131b8028197a4f5de7b7d3ce40fe61aa60da6a /Emby.Common.Implementations/Net/UdpSocket.cs
parenta1074c7f3ae10c1919acc86ef65c18ab66ea3b79 (diff)
parentf96e5c84a2cdf090b6f9097472e6e2332fbf97fe (diff)
Merge pull request #2684 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Common.Implementations/Net/UdpSocket.cs')
-rw-r--r--Emby.Common.Implementations/Net/UdpSocket.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Emby.Common.Implementations/Net/UdpSocket.cs b/Emby.Common.Implementations/Net/UdpSocket.cs
index 578610b4c..df1099d3d 100644
--- a/Emby.Common.Implementations/Net/UdpSocket.cs
+++ b/Emby.Common.Implementations/Net/UdpSocket.cs
@@ -128,6 +128,11 @@ namespace Emby.Common.Implementations.Net
return _Socket.BeginReceiveFrom(buffer, offset, count, SocketFlags.None, ref receivedFromEndPoint, callback, buffer);
}
+ public int Receive(byte[] buffer, int offset, int count)
+ {
+ return _Socket.Receive(buffer, 0, buffer.Length, SocketFlags.None);
+ }
+
public SocketReceiveResult EndReceive(IAsyncResult result)
{
IPEndPoint sender = new IPEndPoint(IPAddress.Any, 0);