31 references to AsyncContext
System.Net.Sockets (31)
System\Net\Sockets\SafeSocketHandle.Unix.cs (2)
131
AsyncContext
.SetHandleNonBlocking();
136
internal bool IsUnderlyingHandleBlocking => !
AsyncContext
.IsHandleNonBlocking;
System\Net\Sockets\SocketAsyncEventArgs.Unix.cs (13)
58
SocketError socketError = handle.
AsyncContext
.AcceptAsync(_acceptBuffer!, out int socketAddressLen, out acceptedFd, AcceptCompletionCallback, cancellationToken);
76
SocketError socketError = handle.
AsyncContext
.ConnectAsync(_socketAddress!.Buffer, ConnectCompletionCallback, _buffer.Slice(_offset, _count), out int sentBytes);
86
SocketError socketError = handle.
AsyncContext
.ConnectAsync(_socketAddress!.Buffer, ConnectCompletionCallback, Memory<byte>.Empty, out int _);
131
errorCode = handle.
AsyncContext
.ReceiveAsync(_buffer.Slice(_offset, _count), _socketFlags, out bytesReceived, TransferCompletionCallback, cancellationToken);
136
errorCode = handle.
AsyncContext
.ReceiveAsync(_buffer.Slice(_offset, _count), _socketFlags, out bytesReceived, out flags, TransferCompletionCallback, cancellationToken);
141
errorCode = handle.
AsyncContext
.ReceiveAsync(_bufferListInternal!, _socketFlags, out bytesReceived, out flags, TransferCompletionCallback);
164
errorCode = handle.
AsyncContext
.ReceiveFromAsync(_buffer.Slice(_offset, _count), _socketFlags, _socketAddress!.Buffer, out socketAddressLen, out bytesReceived, out flags, TransferCompletionCallback, cancellationToken);
168
errorCode = handle.
AsyncContext
.ReceiveFromAsync(_bufferListInternal!, _socketFlags, _socketAddress!.Buffer, out socketAddressLen, out bytesReceived, out flags, TransferCompletionCallback);
209
SocketError socketError = handle.
AsyncContext
.ReceiveMessageFromAsync(_buffer.Slice(_offset, _count), _bufferListInternal, _socketFlags, _socketAddress.Buffer, out socketAddressSize, isIPv4, isIPv6, out bytesReceived, out receivedFlags, out ipPacketInformation, ReceiveMessageFromCompletionCallback, cancellationToken);
228
errorCode = handle.
AsyncContext
.SendAsync(_buffer, _offset, _count, _socketFlags, out bytesSent, TransferCompletionCallback, cancellationToken);
232
errorCode = handle.
AsyncContext
.SendAsync(_bufferListInternal!, _socketFlags, out bytesSent, TransferCompletionCallback);
312
errorCode = handle.
AsyncContext
.SendToAsync(_buffer, _offset, _count, _socketFlags, _socketAddress!.Buffer, ref bytesSent, TransferCompletionCallback, cancellationToken);
316
errorCode = handle.
AsyncContext
.SendToAsync(_bufferListInternal!, _socketFlags, _socketAddress!.Buffer, out bytesSent, TransferCompletionCallback);
System\Net\Sockets\SocketPal.Unix.cs (16)
1141
errorCode = listenSocket.
AsyncContext
.Accept(socketAddress, out socketAddressLen, out acceptedFd);
1162
return handle.
AsyncContext
.Connect(socketAddress);
1183
return handle.
AsyncContext
.Send(bufferList, socketFlags, handle.SendTimeout, out bytesTransferred);
1198
return handle.
AsyncContext
.Send(buffer, offset, count, socketFlags, handle.SendTimeout, out bytesTransferred);
1211
return handle.
AsyncContext
.Send(buffer, socketFlags, handle.SendTimeout, out bytesTransferred);
1228
return handle.
AsyncContext
.SendFile(fileHandle, offset, length, handle.SendTimeout, out _);
1240
return handle.
AsyncContext
.SendTo(buffer, offset, count, socketFlags, socketAddress, handle.SendTimeout, out bytesTransferred);
1253
return handle.
AsyncContext
.SendTo(buffer, socketFlags, socketAddress, handle.SendTimeout, out bytesTransferred);
1267
errorCode = handle.
AsyncContext
.Receive(buffers, socketFlags, handle.ReceiveTimeout, out bytesTransferred);
1284
return handle.
AsyncContext
.Receive(new Memory<byte>(buffer, offset, count), socketFlags, handle.ReceiveTimeout, out bytesTransferred);
1296
return handle.
AsyncContext
.Receive(buffer, socketFlags, handle.ReceiveTimeout, out bytesTransferred);
1314
errorCode = handle.
AsyncContext
.ReceiveMessageFrom(new Memory<byte>(buffer, offset, count), ref socketFlags, socketAddress.Buffer, out socketAddressLen, isIPv4, isIPv6, handle.ReceiveTimeout, out ipPacketInformation, out bytesTransferred);
1340
errorCode = handle.
AsyncContext
.ReceiveMessageFrom(buffer, ref socketFlags, socketAddress.Buffer, out socketAddressLen, isIPv4, isIPv6, handle.ReceiveTimeout, out ipPacketInformation, out bytesTransferred);
1359
return handle.
AsyncContext
.ReceiveFrom(new Memory<byte>(buffer, offset, count), ref socketFlags, socketAddress, out socketAddressLen, handle.ReceiveTimeout, out bytesTransferred);
1371
return handle.
AsyncContext
.ReceiveFrom(buffer, ref socketFlags, socketAddress, out socketAddressLen, handle.ReceiveTimeout, out bytesTransferred);
2073
SocketError socketError = handle.
AsyncContext
.SendFileAsync(fileHandle, offset, count, out bytesSent, callback, cancellationToken);