2 instantiations of SocketReceiveMessageFromResult
System.Net.Sockets (2)
System\Net\Sockets\Socket.Tasks.cs (2)
1137
new ValueTask<SocketReceiveMessageFromResult>(new
SocketReceiveMessageFromResult
() { ReceivedBytes = bytesTransferred, RemoteEndPoint = remoteEndPoint, SocketFlags = socketFlags, PacketInformation = packetInformation }) :
1371
return new
SocketReceiveMessageFromResult
() { ReceivedBytes = bytes, RemoteEndPoint = remoteEndPoint, SocketFlags = socketFlags, PacketInformation = packetInformation };
22 references to SocketReceiveMessageFromResult
netstandard (1)
netstandard.cs (1)
1279
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Sockets.
SocketReceiveMessageFromResult
))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
769
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Sockets.
SocketReceiveMessageFromResult
))]
System.Net.Sockets (20)
System\Net\Sockets\Socket.cs (3)
2673
Task<
SocketReceiveMessageFromResult
> t = ReceiveMessageFromAsync(buffer.AsMemory(offset, size), socketFlags, remoteEP).AsTask();
2696
SocketReceiveMessageFromResult
result = TaskToAsyncResult.End<
SocketReceiveMessageFromResult
>(asyncResult);
System\Net\Sockets\Socket.Tasks.cs (16)
467
/// <returns>An asynchronous task that completes with a <see cref="
SocketReceiveMessageFromResult
"/> containing the number of bytes received and additional information about the sending host.</returns>
468
public Task<
SocketReceiveMessageFromResult
> ReceiveMessageFromAsync(ArraySegment<byte> buffer, EndPoint remoteEndPoint) =>
477
/// <returns>An asynchronous task that completes with a <see cref="
SocketReceiveMessageFromResult
"/> containing the number of bytes received and additional information about the sending host.</returns>
478
public Task<
SocketReceiveMessageFromResult
> ReceiveMessageFromAsync(ArraySegment<byte> buffer, SocketFlags socketFlags, EndPoint remoteEndPoint)
490
/// <returns>An asynchronous task that completes with a <see cref="
SocketReceiveMessageFromResult
"/> containing the number of bytes received and additional information about the sending host.</returns>
491
public ValueTask<
SocketReceiveMessageFromResult
> ReceiveMessageFromAsync(Memory<byte> buffer, EndPoint remoteEndPoint, CancellationToken cancellationToken = default) =>
501
/// <returns>An asynchronous task that completes with a <see cref="
SocketReceiveMessageFromResult
"/> containing the number of bytes received and additional information about the sending host.</returns>
502
public ValueTask<
SocketReceiveMessageFromResult
> ReceiveMessageFromAsync(Memory<byte> buffer, SocketFlags socketFlags, EndPoint remoteEndPoint, CancellationToken cancellationToken = default)
507
return ValueTask.FromCanceled<
SocketReceiveMessageFromResult
>(cancellationToken);
999
internal sealed class AwaitableSocketAsyncEventArgs : SocketAsyncEventArgs, IValueTaskSource, IValueTaskSource<int>, IValueTaskSource<Socket>, IValueTaskSource<SocketReceiveFromResult>, IValueTaskSource<
SocketReceiveMessageFromResult
>
1120
public ValueTask<
SocketReceiveMessageFromResult
> ReceiveMessageFromAsync(Socket socket, CancellationToken cancellationToken)
1125
return new ValueTask<
SocketReceiveMessageFromResult
>(this, _mrvtsc.Version);
1137
new ValueTask<
SocketReceiveMessageFromResult
>(new SocketReceiveMessageFromResult() { ReceivedBytes = bytesTransferred, RemoteEndPoint = remoteEndPoint, SocketFlags = socketFlags, PacketInformation = packetInformation }) :
1138
ValueTask.FromException<
SocketReceiveMessageFromResult
>(CreateException(error));
1350
SocketReceiveMessageFromResult
IValueTaskSource<
SocketReceiveMessageFromResult
>.GetResult(short token)
System\Net\Sockets\SocketTaskExtensions.cs (1)
59
public static Task<
SocketReceiveMessageFromResult
> ReceiveMessageFromAsync(this Socket socket, ArraySegment<byte> buffer, SocketFlags socketFlags, EndPoint remoteEndPoint) =>