98 references to None
dotnet-svcutil-lib (2)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrSocketConnection.cs (2)
537_socket.Send(buffer, offset, size, SocketFlags.None); 584bytesRead = _socket.Receive(buffer, offset, size, SocketFlags.None);
Sockets.FunctionalTests (4)
src\Servers\Kestrel\test\FunctionalTests\UnixDomainSocketsTests.cs (4)
102await socket.SendAsync(data, SocketFlags.None).DefaultTimeout(); 108var bytesReceived = await socket.ReceiveAsync(buffer.AsMemory(read, buffer.Length - read), SocketFlags.None).DefaultTimeout(); 170await socket.SendAsync(httpRequest, SocketFlags.None).DefaultTimeout(); 176var bytesReceived = await socket.ReceiveAsync(readBuffer.AsMemory(read), SocketFlags.None).DefaultTimeout();
System.IO.Pipes (4)
System\IO\Pipes\PipeStream.Unix.cs (4)
272return _handle!.PipeSocket.Receive(buffer, SocketFlags.None); 293int bytesWritten = _handle!.PipeSocket.Send(buffer, SocketFlags.None); 307return await InternalHandle!.PipeSocket.ReceiveAsync(destination, SocketFlags.None, cancellationToken).ConfigureAwait(false); 321int bytesWritten = await _handle!.PipeSocket.SendAsync(source, SocketFlags.None, cancellationToken).ConfigureAwait(false);
System.Net.NetworkInformation (1)
System\Net\NetworkInformation\NetworkAddressChange.Unix.cs (1)
191await socket.ReceiveAsync(Array.Empty<byte>(), SocketFlags.None).ConfigureAwait(false);
System.Net.Ping (4)
System\Net\NetworkInformation\Ping.RawSocket.cs (4)
258socket.SendTo(socketConfig.SendBuffer, SocketFlags.None, socketConfig.EndPoint); 268int bytesReceived = socket.ReceiveFrom(receiveBuffer, SocketFlags.None, ref socketConfig.EndPoint); 334SocketFlags.None, 349SocketFlags.None,
System.Net.Sockets (83)
System\Net\Sockets\NetworkStream.cs (9)
265return _streamSocket.Receive(buffer, SocketFlags.None); 312_streamSocket.Send(buffer, offset, count, SocketFlags.None); 338_streamSocket.Send(buffer, SocketFlags.None); 450SocketFlags.None, 517SocketFlags.None, 576SocketFlags.None, 599SocketFlags.None, 637SocketFlags.None, 659SocketFlags.None,
System\Net\Sockets\Socket.cs (12)
1116return Send(buffer, 0, buffer != null ? buffer.Length : 0, SocketFlags.None); 1123return Send(buffers, SocketFlags.None); 1229public int Send(ReadOnlySpan<byte> buffer) => Send(buffer, SocketFlags.None); 1399return SendTo(buffer, 0, buffer != null ? buffer.Length : 0, SocketFlags.None, remoteEP); 1415return SendTo(buffer, SocketFlags.None, remoteEP); 1518return Receive(buffer, 0, buffer != null ? buffer.Length : 0, SocketFlags.None); 1567public int Receive(Span<byte> buffer) => Receive(buffer, SocketFlags.None); 1610return Receive(buffers, SocketFlags.None); 1905return ReceiveFrom(buffer, 0, buffer != null ? buffer.Length : 0, SocketFlags.None, ref remoteEP); 1919return ReceiveFrom(buffer, SocketFlags.None, ref remoteEP); 2770bytesReceived = await s.ReceiveAsync(buffer, SocketFlags.None).ConfigureAwait(false); 3472errorCode = SocketPal.Receive(handle, Array.Empty<byte>(), 0, 0, SocketFlags.None, out unused);
System\Net\Sockets\Socket.Tasks.cs (12)
277ReceiveAsync(buffer, SocketFlags.None); 300ReceiveAsync(buffer, SocketFlags.None, cancellationToken); 336ReceiveAsync(buffers, SocketFlags.None); 367ReceiveFromAsync(buffer, SocketFlags.None, remoteEndPoint); 390ReceiveFromAsync(buffer, SocketFlags.None, remoteEndPoint, cancellationToken); 469ReceiveMessageFromAsync(buffer, SocketFlags.None, remoteEndPoint); 492ReceiveMessageFromAsync(buffer, SocketFlags.None, remoteEndPoint, cancellationToken); 528SendAsync(buffer, SocketFlags.None); 549SendAsync(buffer, SocketFlags.None, cancellationToken); 600SendAsync(buffers, SocketFlags.None); 631SendToAsync(buffer, SocketFlags.None, remoteEP); 654SendToAsync(buffer, SocketFlags.None, remoteEP, cancellationToken);
System\Net\Sockets\SocketAsyncContext.Unix.cs (12)
362Callback!(BytesTransferred, SocketAddress, SocketFlags.None, ErrorCode); 389cb(bt, sa, SocketFlags.None, ec); 417cb(bt, sa, SocketFlags.None, ec); 460if (Buffer.Length == 0 && Flags == SocketFlags.None && SocketAddress.Length == 0) 463ReceivedFlags = SocketFlags.None; 473ReceivedFlags = SocketFlags.None; 662SocketError error = context.SendToAsync(Buffer, 0, Buffer.Length, SocketFlags.None, Memory<byte>.Empty, ref BytesTransferred, Callback!, default); 684cb(bt, sa, SocketFlags.None, ec); 1564errorCode = SendToAsync(buffer.Slice(sentBytes), 0, remains, SocketFlags.None, Memory<byte>.Empty, ref sentBytes, callback!, default); 1735receivedFlags = SocketFlags.None; 1811receivedFlags = SocketFlags.None; 1929receivedFlags = SocketFlags.None;
System\Net\Sockets\SocketAsyncEventArgs.cs (1)
836SetResults(caughtException, 0, SocketFlags.None);
System\Net\Sockets\SocketAsyncEventArgs.Unix.cs (18)
30CompletionCallback(0, SocketFlags.None, socketError); 63FinishOperationSync(socketError, 0, SocketFlags.None); 71CompletionCallback(bytesTransferred, SocketFlags.None, socketError); 79FinishOperationSync(socketError, sentBytes, SocketFlags.None); 89FinishOperationSync(socketError, 0, SocketFlags.None); 97FinishOperationSync(socketError, 0, SocketFlags.None); 119_receivedFlags = System.Net.Sockets.SocketFlags.None; 132flags = SocketFlags.None; 155_receivedFlags = System.Net.Sockets.SocketFlags.None; 199_receivedFlags = System.Net.Sockets.SocketFlags.None; 221_receivedFlags = System.Net.Sockets.SocketFlags.None; 237CompleteTransferOperation(null, 0, SocketFlags.None); 238FinishOperationSync(errorCode, bytesSent, SocketFlags.None); 292FinishOperationAsyncSuccess((int)bytesTransferred, SocketFlags.None); 296FinishOperationAsyncFailure(error, (int)bytesTransferred, SocketFlags.None); 305_receivedFlags = System.Net.Sockets.SocketFlags.None; 321CompleteTransferOperation(_socketAddress.Buffer, _socketAddress.Size, SocketFlags.None); 322FinishOperationSync(errorCode, bytesSent, SocketFlags.None);
System\Net\Sockets\SocketPal.Unix.cs (4)
782Debug.Assert(flags == SocketFlags.None); 841Debug.Assert(flags == SocketFlags.None); 980Debug.Assert(flags == SocketFlags.None); 2096bytesTransferred = await socket.SendAsync(e.MemoryBuffer.Value, SocketFlags.None, cancellationToken).ConfigureAwait(false) + bytesTransferred;
System\Net\Sockets\UDPClient.cs (15)
293return _clientSocket.BeginSend(datagram, 0, bytes, SocketFlags.None, requestCallback, state); 298return _clientSocket.BeginSendTo(datagram, 0, bytes, SocketFlags.None, endPoint, requestCallback, state); 372return _clientSocket.BeginReceiveFrom(_buffer, 0, MaxUDPSize, SocketFlags.None, ref tempRemoteEP, requestCallback, state); 573return _clientSocket.SendAsync(new ArraySegment<byte>(datagram, 0, bytes), SocketFlags.None); 578return _clientSocket.SendToAsync(new ArraySegment<byte>(datagram, 0, bytes), SocketFlags.None, endPoint); 604return _clientSocket.SendAsync(datagram, SocketFlags.None, cancellationToken); 612return _clientSocket.SendToAsync(datagram, SocketFlags.None, endPoint, cancellationToken); 621SocketFlags.None, 647SocketFlags.None, 869return Client.Send(dgram, 0, bytes, SocketFlags.None); 874return Client.SendTo(dgram, 0, bytes, SocketFlags.None, endPoint); 904return Client.Send(datagram, SocketFlags.None); 909return Client.SendTo(datagram, SocketFlags.None, endPoint); 947return Client.Send(dgram, 0, bytes, SocketFlags.None); 972return Client.Send(datagram, SocketFlags.None);