85 references to SocketFlags
dotnet-svcutil-lib (2)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrSocketConnection.cs (2)
537
_socket.Send(buffer, offset, size,
SocketFlags
.None);
584
bytesRead = _socket.Receive(buffer, offset, size,
SocketFlags
.None);
Microsoft.Extensions.ServiceDiscovery.Dns (4)
Resolver\DnsResolver.cs (4)
727
await socket.SendToAsync(memory.Slice(0, length),
SocketFlags
.None, serverEndPoint, cancellationToken).ConfigureAwait(false);
737
int packetLength = await socket.ReceiveAsync(memory,
SocketFlags
.None, cancellationToken).ConfigureAwait(false);
778
await socket.SendAsync(buffer.AsMemory(0, length + 2),
SocketFlags
.None, cancellationToken).ConfigureAwait(false);
784
int read = await socket.ReceiveAsync(buffer.AsMemory(bytesRead),
SocketFlags
.None, cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (3)
Resolver\LoopbackDnsServer.cs (3)
62
await _dnsSocket.SendToAsync(buffer.AsMemory(0, bytesWritten),
SocketFlags
.None, result.RemoteEndPoint);
94
int read = await tcpClient.ReceiveAsync(buffer.AsMemory(bytesRead, toRead),
SocketFlags
.None);
105
await tcpClient.SendAsync(buffer.AsMemory(0, bytesWritten + 2),
SocketFlags
.None);
netstandard (1)
netstandard.cs (1)
1273
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Sockets.
SocketFlags
))]
Sockets.FunctionalTests (4)
src\Servers\Kestrel\test\FunctionalTests\UnixDomainSocketsTests.cs (4)
102
await socket.SendAsync(data,
SocketFlags
.None).DefaultTimeout();
108
var bytesReceived = await socket.ReceiveAsync(buffer.AsMemory(read, buffer.Length - read),
SocketFlags
.None).DefaultTimeout();
170
await socket.SendAsync(httpRequest,
SocketFlags
.None).DefaultTimeout();
176
var bytesReceived = await socket.ReceiveAsync(readBuffer.AsMemory(read),
SocketFlags
.None).DefaultTimeout();
System (1)
src\libraries\shims\System\ref\System.cs (1)
763
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Sockets.
SocketFlags
))]
System.Net.Ping (5)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.MessageHeader.cs (1)
19
public
SocketFlags
Flags;
System\Net\NetworkInformation\Ping.RawSocket.cs (4)
258
socket.SendTo(socketConfig.SendBuffer,
SocketFlags
.None, socketConfig.EndPoint);
268
int bytesReceived = socket.ReceiveFrom(receiveBuffer,
SocketFlags
.None, ref socketConfig.EndPoint);
334
SocketFlags
.None,
349
SocketFlags
.None,
System.Net.Sockets (65)
artifacts\obj\System.Net.Sockets\Debug\net10.0\System.Net.Sockets.notsupported.cs (65)
317
public System.IAsyncResult BeginReceive(byte[] buffer, int offset, int size, System.Net.Sockets.
SocketFlags
socketFlags, System.AsyncCallback? callback, object? state) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
318
public System.IAsyncResult? BeginReceive(byte[] buffer, int offset, int size, System.Net.Sockets.
SocketFlags
socketFlags, out System.Net.Sockets.SocketError errorCode, System.AsyncCallback? callback, object? state) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
319
public System.IAsyncResult BeginReceive(System.Collections.Generic.IList<System.ArraySegment<byte>> buffers, System.Net.Sockets.
SocketFlags
socketFlags, System.AsyncCallback? callback, object? state) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
320
public System.IAsyncResult? BeginReceive(System.Collections.Generic.IList<System.ArraySegment<byte>> buffers, System.Net.Sockets.
SocketFlags
socketFlags, out System.Net.Sockets.SocketError errorCode, System.AsyncCallback? callback, object? state) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
321
public System.IAsyncResult BeginReceiveFrom(byte[] buffer, int offset, int size, System.Net.Sockets.
SocketFlags
socketFlags, ref System.Net.EndPoint remoteEP, System.AsyncCallback? callback, object? state) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
322
public System.IAsyncResult BeginReceiveMessageFrom(byte[] buffer, int offset, int size, System.Net.Sockets.
SocketFlags
socketFlags, ref System.Net.EndPoint remoteEP, System.AsyncCallback? callback, object? state) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
323
public System.IAsyncResult BeginSend(byte[] buffer, int offset, int size, System.Net.Sockets.
SocketFlags
socketFlags, System.AsyncCallback? callback, object? state) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
324
public System.IAsyncResult? BeginSend(byte[] buffer, int offset, int size, System.Net.Sockets.
SocketFlags
socketFlags, out System.Net.Sockets.SocketError errorCode, System.AsyncCallback? callback, object? state) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
325
public System.IAsyncResult BeginSend(System.Collections.Generic.IList<System.ArraySegment<byte>> buffers, System.Net.Sockets.
SocketFlags
socketFlags, System.AsyncCallback? callback, object? state) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
326
public System.IAsyncResult? BeginSend(System.Collections.Generic.IList<System.ArraySegment<byte>> buffers, System.Net.Sockets.
SocketFlags
socketFlags, out System.Net.Sockets.SocketError errorCode, System.AsyncCallback? callback, object? state) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
329
public System.IAsyncResult BeginSendTo(byte[] buffer, int offset, int size, System.Net.Sockets.
SocketFlags
socketFlags, System.Net.EndPoint remoteEP, System.AsyncCallback? callback, object? state) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
363
public int EndReceiveMessageFrom(System.IAsyncResult asyncResult, ref System.Net.Sockets.
SocketFlags
socketFlags, ref System.Net.EndPoint endPoint, out System.Net.Sockets.IPPacketInformation ipPacketInformation) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
380
public int Receive(byte[] buffer, int offset, int size, System.Net.Sockets.
SocketFlags
socketFlags) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
381
public int Receive(byte[] buffer, int offset, int size, System.Net.Sockets.
SocketFlags
socketFlags, out System.Net.Sockets.SocketError errorCode) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
382
public int Receive(byte[] buffer, int size, System.Net.Sockets.
SocketFlags
socketFlags) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
383
public int Receive(byte[] buffer, System.Net.Sockets.
SocketFlags
socketFlags) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
385
public int Receive(System.Collections.Generic.IList<System.ArraySegment<byte>> buffers, System.Net.Sockets.
SocketFlags
socketFlags) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
386
public int Receive(System.Collections.Generic.IList<System.ArraySegment<byte>> buffers, System.Net.Sockets.
SocketFlags
socketFlags, out System.Net.Sockets.SocketError errorCode) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
388
public int Receive(System.Span<byte> buffer, System.Net.Sockets.
SocketFlags
socketFlags) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
389
public int Receive(System.Span<byte> buffer, System.Net.Sockets.
SocketFlags
socketFlags, out System.Net.Sockets.SocketError errorCode) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
391
public System.Threading.Tasks.Task<int> ReceiveAsync(System.ArraySegment<byte> buffer, System.Net.Sockets.
SocketFlags
socketFlags) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
393
public System.Threading.Tasks.Task<int> ReceiveAsync(System.Collections.Generic.IList<System.ArraySegment<byte>> buffers, System.Net.Sockets.
SocketFlags
socketFlags) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
394
public System.Threading.Tasks.ValueTask<int> ReceiveAsync(System.Memory<byte> buffer, System.Net.Sockets.
SocketFlags
socketFlags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
397
public int ReceiveFrom(byte[] buffer, int offset, int size, System.Net.Sockets.
SocketFlags
socketFlags, ref System.Net.EndPoint remoteEP) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
398
public int ReceiveFrom(byte[] buffer, int size, System.Net.Sockets.
SocketFlags
socketFlags, ref System.Net.EndPoint remoteEP) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
400
public int ReceiveFrom(byte[] buffer, System.Net.Sockets.
SocketFlags
socketFlags, ref System.Net.EndPoint remoteEP) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
402
public int ReceiveFrom(System.Span<byte> buffer, System.Net.Sockets.
SocketFlags
socketFlags, ref System.Net.EndPoint remoteEP) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
403
public int ReceiveFrom(System.Span<byte> buffer, System.Net.Sockets.
SocketFlags
socketFlags, System.Net.SocketAddress receivedAddress) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
405
public System.Threading.Tasks.Task<System.Net.Sockets.SocketReceiveFromResult> ReceiveFromAsync(System.ArraySegment<byte> buffer, System.Net.Sockets.
SocketFlags
socketFlags, System.Net.EndPoint remoteEndPoint) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
407
public System.Threading.Tasks.ValueTask<System.Net.Sockets.SocketReceiveFromResult> ReceiveFromAsync(System.Memory<byte> buffer, System.Net.Sockets.
SocketFlags
socketFlags, System.Net.EndPoint remoteEndPoint, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
408
public System.Threading.Tasks.ValueTask<int> ReceiveFromAsync(System.Memory<byte> buffer, System.Net.Sockets.
SocketFlags
socketFlags, System.Net.SocketAddress receivedAddress, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
410
public int ReceiveMessageFrom(byte[] buffer, int offset, int size, ref System.Net.Sockets.
SocketFlags
socketFlags, ref System.Net.EndPoint remoteEP, out System.Net.Sockets.IPPacketInformation ipPacketInformation) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
411
public int ReceiveMessageFrom(System.Span<byte> buffer, ref System.Net.Sockets.
SocketFlags
socketFlags, ref System.Net.EndPoint remoteEP, out System.Net.Sockets.IPPacketInformation ipPacketInformation) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
413
public System.Threading.Tasks.Task<System.Net.Sockets.SocketReceiveMessageFromResult> ReceiveMessageFromAsync(System.ArraySegment<byte> buffer, System.Net.Sockets.
SocketFlags
socketFlags, System.Net.EndPoint remoteEndPoint) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
415
public System.Threading.Tasks.ValueTask<System.Net.Sockets.SocketReceiveMessageFromResult> ReceiveMessageFromAsync(System.Memory<byte> buffer, System.Net.Sockets.
SocketFlags
socketFlags, System.Net.EndPoint remoteEndPoint, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
420
public int Send(byte[] buffer, int offset, int size, System.Net.Sockets.
SocketFlags
socketFlags) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
421
public int Send(byte[] buffer, int offset, int size, System.Net.Sockets.
SocketFlags
socketFlags, out System.Net.Sockets.SocketError errorCode) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
422
public int Send(byte[] buffer, int size, System.Net.Sockets.
SocketFlags
socketFlags) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
423
public int Send(byte[] buffer, System.Net.Sockets.
SocketFlags
socketFlags) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
425
public int Send(System.Collections.Generic.IList<System.ArraySegment<byte>> buffers, System.Net.Sockets.
SocketFlags
socketFlags) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
426
public int Send(System.Collections.Generic.IList<System.ArraySegment<byte>> buffers, System.Net.Sockets.
SocketFlags
socketFlags, out System.Net.Sockets.SocketError errorCode) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
428
public int Send(System.ReadOnlySpan<byte> buffer, System.Net.Sockets.
SocketFlags
socketFlags) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
429
public int Send(System.ReadOnlySpan<byte> buffer, System.Net.Sockets.
SocketFlags
socketFlags, out System.Net.Sockets.SocketError errorCode) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
431
public System.Threading.Tasks.Task<int> SendAsync(System.ArraySegment<byte> buffer, System.Net.Sockets.
SocketFlags
socketFlags) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
433
public System.Threading.Tasks.Task<int> SendAsync(System.Collections.Generic.IList<System.ArraySegment<byte>> buffers, System.Net.Sockets.
SocketFlags
socketFlags) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
435
public System.Threading.Tasks.ValueTask<int> SendAsync(System.ReadOnlyMemory<byte> buffer, System.Net.Sockets.
SocketFlags
socketFlags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
443
public int SendTo(byte[] buffer, int offset, int size, System.Net.Sockets.
SocketFlags
socketFlags, System.Net.EndPoint remoteEP) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
444
public int SendTo(byte[] buffer, int size, System.Net.Sockets.
SocketFlags
socketFlags, System.Net.EndPoint remoteEP) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
446
public int SendTo(byte[] buffer, System.Net.Sockets.
SocketFlags
socketFlags, System.Net.EndPoint remoteEP) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
448
public int SendTo(System.ReadOnlySpan<byte> buffer, System.Net.Sockets.
SocketFlags
socketFlags, System.Net.EndPoint remoteEP) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
449
public int SendTo(System.ReadOnlySpan<byte> buffer, System.Net.Sockets.
SocketFlags
socketFlags, System.Net.SocketAddress socketAddress) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
451
public System.Threading.Tasks.Task<int> SendToAsync(System.ArraySegment<byte> buffer, System.Net.Sockets.
SocketFlags
socketFlags, System.Net.EndPoint remoteEP) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
454
public System.Threading.Tasks.ValueTask<int> SendToAsync(System.ReadOnlyMemory<byte> buffer, System.Net.Sockets.
SocketFlags
socketFlags, System.Net.EndPoint remoteEP, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
455
public System.Threading.Tasks.ValueTask<int> SendToAsync(System.ReadOnlyMemory<byte> buffer, System.Net.Sockets.
SocketFlags
socketFlags, System.Net.SocketAddress socketAddress, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
486
public System.Net.Sockets.
SocketFlags
SocketFlags { get { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); } }
610
public System.Net.Sockets.
SocketFlags
SocketFlags;
642
public static System.Threading.Tasks.Task<int> ReceiveAsync(this System.Net.Sockets.Socket socket, System.ArraySegment<byte> buffer, System.Net.Sockets.
SocketFlags
socketFlags) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
644
public static System.Threading.Tasks.Task<int> ReceiveAsync(this System.Net.Sockets.Socket socket, System.Collections.Generic.IList<System.ArraySegment<byte>> buffers, System.Net.Sockets.
SocketFlags
socketFlags) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
646
public static System.Threading.Tasks.ValueTask<int> ReceiveAsync(this System.Net.Sockets.Socket socket, System.Memory<byte> buffer, System.Net.Sockets.
SocketFlags
socketFlags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
648
public static System.Threading.Tasks.Task<System.Net.Sockets.SocketReceiveFromResult> ReceiveFromAsync(this System.Net.Sockets.Socket socket, System.ArraySegment<byte> buffer, System.Net.Sockets.
SocketFlags
socketFlags, System.Net.EndPoint remoteEndPoint) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
650
public static System.Threading.Tasks.Task<System.Net.Sockets.SocketReceiveMessageFromResult> ReceiveMessageFromAsync(this System.Net.Sockets.Socket socket, System.ArraySegment<byte> buffer, System.Net.Sockets.
SocketFlags
socketFlags, System.Net.EndPoint remoteEndPoint) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
652
public static System.Threading.Tasks.Task<int> SendAsync(this System.Net.Sockets.Socket socket, System.ArraySegment<byte> buffer, System.Net.Sockets.
SocketFlags
socketFlags) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
654
public static System.Threading.Tasks.Task<int> SendAsync(this System.Net.Sockets.Socket socket, System.Collections.Generic.IList<System.ArraySegment<byte>> buffers, System.Net.Sockets.
SocketFlags
socketFlags) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
656
public static System.Threading.Tasks.ValueTask<int> SendAsync(this System.Net.Sockets.Socket socket, System.ReadOnlyMemory<byte> buffer, System.Net.Sockets.
SocketFlags
socketFlags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
658
public static System.Threading.Tasks.Task<int> SendToAsync(this System.Net.Sockets.Socket socket, System.ArraySegment<byte> buffer, System.Net.Sockets.
SocketFlags
socketFlags, System.Net.EndPoint remoteEP) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }