update live stream buffers

This commit is contained in:
Luke Pulverenti
2017-06-01 02:25:07 -04:00
parent 0f1d253278
commit f96e5c84a2
6 changed files with 200 additions and 14 deletions

View File

@@ -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);