e79aa3c0ed
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
87 lines
5.7 KiB
C#
87 lines
5.7 KiB
C#
using System;
|
|
using System.ComponentModel;
|
|
namespace System.Net.Sockets
|
|
{
|
|
|
|
//introduced for supporting design-time loading of System.Windows.dll
|
|
[Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
public class UdpAnySourceMulticastClient : IDisposable
|
|
{
|
|
//introduced for supporting design-time loading of System.Windows.dll
|
|
[Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
public UdpAnySourceMulticastClient(IPAddress groupAddress, int localPort) { }
|
|
|
|
//introduced for supporting design-time loading of System.Windows.dll
|
|
[Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
public IAsyncResult BeginJoinGroup(AsyncCallback callback, object state) { throw new SocketException((int)(SocketError.AccessDenied)); }
|
|
|
|
//introduced for supporting design-time loading of System.Windows.dll
|
|
[Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
public IAsyncResult BeginReceiveFromGroup(byte[] buffer, int offset, int count, AsyncCallback callback, object state) { throw new SocketException((int)(SocketError.AccessDenied)); }
|
|
|
|
//introduced for supporting design-time loading of System.Windows.dll
|
|
[Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
public IAsyncResult BeginSendTo(byte[] buffer, int offset, int count, IPEndPoint remoteEndPoint, AsyncCallback callback, object state) { throw new SocketException((int)(SocketError.AccessDenied)); }
|
|
|
|
//introduced for supporting design-time loading of System.Windows.dll
|
|
[Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
public IAsyncResult BeginSendToGroup(byte[] buffer, int offset, int count, AsyncCallback callback, object state) { throw new SocketException((int)(SocketError.AccessDenied)); }
|
|
|
|
//introduced for supporting design-time loading of System.Windows.dll
|
|
[Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
public void BlockSource(IPAddress sourceAddress) { }
|
|
|
|
//introduced for supporting design-time loading of System.Windows.dll
|
|
[Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
public void Dispose() { }
|
|
|
|
//introduced for supporting design-time loading of System.Windows.dll
|
|
[Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
public void EndJoinGroup(IAsyncResult result) { }
|
|
|
|
//introduced for supporting design-time loading of System.Windows.dll
|
|
[Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
public int EndReceiveFromGroup(IAsyncResult result, out IPEndPoint source) { throw new SocketException((int)(SocketError.AccessDenied)); }
|
|
|
|
//introduced for supporting design-time loading of System.Windows.dll
|
|
[Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
public void EndSendTo(IAsyncResult result) { }
|
|
|
|
//introduced for supporting design-time loading of System.Windows.dll
|
|
[Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
public void EndSendToGroup(IAsyncResult result) { }
|
|
|
|
//introduced for supporting design-time loading of System.Windows.dll
|
|
[Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
public void UnblockSource(IPAddress sourceAddress) { }
|
|
|
|
//introduced for supporting design-time loading of System.Windows.dll
|
|
[Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
public bool MulticastLoopback { get; set; }
|
|
|
|
//introduced for supporting design-time loading of System.Windows.dll
|
|
[Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
public int ReceiveBufferSize { get; set; }
|
|
|
|
//introduced for supporting design-time loading of System.Windows.dll
|
|
[Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
public int SendBufferSize { get; set; }
|
|
}
|
|
}
|