/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

  1. using System;
  2. namespace Manos.IO
  3. {
  4. /// <summary>
  5. /// Marks a stream as sendfile-capable, i.e. the streams supports
  6. /// efficient methods to write the contents of a given file to
  7. /// the stream.
  8. /// </summary>
  9. public interface ISendfileCapable
  10. {
  11. /// <summary>
  12. /// Sends a file to the stream efficiently.
  13. /// </summary>
  14. /// <param name='file'>
  15. /// Name of the file to send.
  16. /// </param>
  17. void SendFile (string file);
  18. }
  19. }