mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-15 12:10:47 +01:00
removed udp server layer
This commit is contained in:
@@ -1,46 +0,0 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MediaBrowser.Common.Net
|
||||
{
|
||||
/// <summary>
|
||||
/// Interface IUdpServer
|
||||
/// </summary>
|
||||
public interface IUdpServer : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// Occurs when [message received].
|
||||
/// </summary>
|
||||
event EventHandler<UdpMessageReceivedEventArgs> MessageReceived;
|
||||
|
||||
/// <summary>
|
||||
/// Starts the specified port.
|
||||
/// </summary>
|
||||
/// <param name="port">The port.</param>
|
||||
void Start(int port);
|
||||
|
||||
/// <summary>
|
||||
/// Stops this instance.
|
||||
/// </summary>
|
||||
void Stop();
|
||||
|
||||
/// <summary>
|
||||
/// Sends the async.
|
||||
/// </summary>
|
||||
/// <param name="bytes">The bytes.</param>
|
||||
/// <param name="remoteEndPoint">The remote end point.</param>
|
||||
/// <returns>Task.</returns>
|
||||
/// <exception cref="System.ArgumentNullException">data</exception>
|
||||
Task SendAsync(byte[] bytes, string remoteEndPoint);
|
||||
|
||||
/// <summary>
|
||||
/// Sends the async.
|
||||
/// </summary>
|
||||
/// <param name="bytes">The bytes.</param>
|
||||
/// <param name="ipAddress">The ip address.</param>
|
||||
/// <param name="port">The port.</param>
|
||||
/// <returns>Task.</returns>
|
||||
/// <exception cref="System.ArgumentNullException">bytes</exception>
|
||||
Task SendAsync(byte[] bytes, string ipAddress, int port);
|
||||
}
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Common.Net
|
||||
{
|
||||
/// <summary>
|
||||
/// Class UdpMessageReceivedEventArgs
|
||||
/// </summary>
|
||||
public class UdpMessageReceivedEventArgs : EventArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the bytes.
|
||||
/// </summary>
|
||||
/// <value>The bytes.</value>
|
||||
public byte[] Bytes { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the remote end point.
|
||||
/// </summary>
|
||||
/// <value>The remote end point.</value>
|
||||
public string RemoteEndPoint { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user