aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/Net
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-03-27 18:13:46 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-03-27 18:13:46 -0400
commit31bb5b5cb349f33842994415dd1d876385b599bb (patch)
treefb7af1d9b160852fe894e654bdb4b1d19e79da76 /MediaBrowser.Common/Net
parentecbec1f6fd26da204fa80bea171790f599975880 (diff)
removed udp server layer
Diffstat (limited to 'MediaBrowser.Common/Net')
-rw-r--r--MediaBrowser.Common/Net/IUdpServer.cs46
-rw-r--r--MediaBrowser.Common/Net/UdpMessageReceivedEventArgs.cs21
2 files changed, 0 insertions, 67 deletions
diff --git a/MediaBrowser.Common/Net/IUdpServer.cs b/MediaBrowser.Common/Net/IUdpServer.cs
deleted file mode 100644
index 036977eab5..0000000000
--- a/MediaBrowser.Common/Net/IUdpServer.cs
+++ /dev/null
@@ -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);
- }
-}
diff --git a/MediaBrowser.Common/Net/UdpMessageReceivedEventArgs.cs b/MediaBrowser.Common/Net/UdpMessageReceivedEventArgs.cs
deleted file mode 100644
index bd5034c47d..0000000000
--- a/MediaBrowser.Common/Net/UdpMessageReceivedEventArgs.cs
+++ /dev/null
@@ -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; }
- }
-}