You've already forked linux-packaging-mono
Imported Upstream version 4.0.0~alpha1
Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
This commit is contained in:
61
external/referencesource/System.Net/net/UdpSingleSourceMulticastClient.cs
vendored
Normal file
61
external/referencesource/System.Net/net/UdpSingleSourceMulticastClient.cs
vendored
Normal file
@ -0,0 +1,61 @@
|
||||
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 UdpSingleSourceMulticastClient : 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 UdpSingleSourceMulticastClient(IPAddress sourceAddress, 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 BeginReceiveFromSource(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 BeginSendToSource(byte[] buffer, int offset, int count, int remotePort, 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 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 EndReceiveFromSource(IAsyncResult result, out int sourcePort) { 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 EndSendToSource(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 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; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user