24 references to TransmitFileOptions
netstandard (1)
netstandard.cs (1)
1285
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Sockets.
TransmitFileOptions
))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
775
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Sockets.
TransmitFileOptions
))]
System.Net.Sockets (22)
System\Net\Sockets\Socket.cs (9)
1272
SendFile(fileName, ReadOnlySpan<byte>.Empty, ReadOnlySpan<byte>.Empty,
TransmitFileOptions
.UseDefaultWorkerThread);
1277
/// using the specified <see cref="
TransmitFileOptions
"/> value.
1289
/// One or more of <see cref="
TransmitFileOptions
"/> values.
1296
public void SendFile(string? fileName, byte[]? preBuffer, byte[]? postBuffer,
TransmitFileOptions
flags)
1305
/// using the specified <see cref="
TransmitFileOptions
"/> value.
1317
/// One or more of <see cref="
TransmitFileOptions
"/> values.
1324
public void SendFile(string? fileName, ReadOnlySpan<byte> preBuffer, ReadOnlySpan<byte> postBuffer,
TransmitFileOptions
flags)
2553
return BeginSendFile(fileName, null, null,
TransmitFileOptions
.UseDefaultWorkerThread, callback, state);
2556
public IAsyncResult BeginSendFile(string? fileName, byte[]? preBuffer, byte[]? postBuffer,
TransmitFileOptions
flags, AsyncCallback? callback, object? state)
System\Net\Sockets\Socket.Tasks.cs (4)
735
return SendFileAsync(fileName, default, default,
TransmitFileOptions
.UseDefaultWorkerThread, cancellationToken);
740
/// using the specified <see cref="
TransmitFileOptions
"/> value.
745
/// <param name="flags">One or more of <see cref="
TransmitFileOptions
"/> values.</param>
751
public ValueTask SendFileAsync(string? fileName, ReadOnlyMemory<byte> preBuffer, ReadOnlyMemory<byte> postBuffer,
TransmitFileOptions
flags, CancellationToken cancellationToken = default)
System\Net\Sockets\Socket.Unix.cs (3)
213
private static void CheckTransmitFileOptions(
TransmitFileOptions
flags)
217
if (flags !=
TransmitFileOptions
.UseDefaultWorkerThread)
223
private void SendFileInternal(string? fileName, ReadOnlySpan<byte> preBuffer, ReadOnlySpan<byte> postBuffer,
TransmitFileOptions
flags)
System\Net\Sockets\SocketAsyncEventArgs.cs (2)
52
private
TransmitFileOptions
_sendPacketsFlags;
139
public
TransmitFileOptions
SendPacketsFlags
System\Net\Sockets\SocketPal.Unix.cs (4)
2082
Socket socket,
TransmitFileOptions
options, SendPacketsElement[] elements, SafeFileHandle[] fileHandles, CancellationToken cancellationToken, Action<long, SocketError> callback)
2129
if ((options & (
TransmitFileOptions
.Disconnect |
TransmitFileOptions
.ReuseSocket)) != 0)
2131
error = Disconnect(socket, socket.InternalSafeHandle, (options &
TransmitFileOptions
.ReuseSocket) != 0);