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