using System;
using System.Threading.Tasks;
namespace MediaBrowser.Common.Net
{
///
/// Interface IUdpServer
///
public interface IUdpServer : IDisposable
{
///
/// Occurs when [message received].
///
event EventHandler MessageReceived;
///
/// Starts the specified port.
///
/// The port.
void Start(int port);
///
/// Stops this instance.
///
void Stop();
///
/// Sends the async.
///
/// The bytes.
/// The remote end point.
/// Task.
/// data
Task SendAsync(byte[] bytes, string remoteEndPoint);
///
/// Sends the async.
///
/// The bytes.
/// The ip address.
/// The port.
/// Task.
/// bytes
Task SendAsync(byte[] bytes, string ipAddress, int port);
}
}