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)
1272SendFile(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. 1296public 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. 1324public void SendFile(string? fileName, ReadOnlySpan<byte> preBuffer, ReadOnlySpan<byte> postBuffer, TransmitFileOptions flags) 2553return BeginSendFile(fileName, null, null, TransmitFileOptions.UseDefaultWorkerThread, callback, state); 2556public IAsyncResult BeginSendFile(string? fileName, byte[]? preBuffer, byte[]? postBuffer, TransmitFileOptions flags, AsyncCallback? callback, object? state)
System\Net\Sockets\Socket.Tasks.cs (4)
735return 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> 751public ValueTask SendFileAsync(string? fileName, ReadOnlyMemory<byte> preBuffer, ReadOnlyMemory<byte> postBuffer, TransmitFileOptions flags, CancellationToken cancellationToken = default)
System\Net\Sockets\Socket.Unix.cs (3)
213private static void CheckTransmitFileOptions(TransmitFileOptions flags) 217if (flags != TransmitFileOptions.UseDefaultWorkerThread) 223private void SendFileInternal(string? fileName, ReadOnlySpan<byte> preBuffer, ReadOnlySpan<byte> postBuffer, TransmitFileOptions flags)
System\Net\Sockets\SocketAsyncEventArgs.cs (2)
52private TransmitFileOptions _sendPacketsFlags; 139public TransmitFileOptions SendPacketsFlags
System\Net\Sockets\SocketPal.Unix.cs (4)
2082Socket socket, TransmitFileOptions options, SendPacketsElement[] elements, SafeFileHandle[] fileHandles, CancellationToken cancellationToken, Action<long, SocketError> callback) 2129if ((options & (TransmitFileOptions.Disconnect | TransmitFileOptions.ReuseSocket)) != 0) 2131error = Disconnect(socket, socket.InternalSafeHandle, (options & TransmitFileOptions.ReuseSocket) != 0);