/src/Manos.IO/Manos.IO/ISendfileCapable.cs
http://github.com/jacksonh/manos · C# · 21 lines · 8 code · 2 blank · 11 comment · 0 complexity · 4e3baca972f9e5e452b5631018f80fe0 MD5 · raw file
- using System;
- namespace Manos.IO
- {
- /// <summary>
- /// Marks a stream as sendfile-capable, i.e. the streams supports
- /// efficient methods to write the contents of a given file to
- /// the stream.
- /// </summary>
- public interface ISendfileCapable
- {
- /// <summary>
- /// Sends a file to the stream efficiently.
- /// </summary>
- /// <param name='file'>
- /// Name of the file to send.
- /// </param>
- void SendFile (string file);
- }
- }