"Fossies" - the Fresh Open Source Software Archive

Member "muscle/csharp/src/AbstractMessageIOGateway.cs" (28 Nov 2019, 989 Bytes) of package /linux/privat/muscle7.52.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C# source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "AbstractMessageIOGateway.cs" see the Fossies "Dox" file reference documentation.

    1 
    2 namespace muscle.iogateway {
    3   using muscle.support;
    4   using muscle.message;
    5 
    6   using System.IO;
    7 
    8   /// <summary>
    9   /// Interface for an object that knows how to translate bytes
   10   /// into Messages, and vice versa.
   11   /// </summary>
   12   ///
   13   public interface AbstractMessageIOGateway {
   14 
   15     /// <summary>
   16     /// Reads from the input stream until a Message can be assembled and 
   17     /// returned.
   18     /// </summary>
   19     /// <param name="inputStream">The input stream from which to read.</param>
   20     /// <exception cref="IOException"/>
   21     /// <exception cref="UnflattenFormatException"/>
   22     /// <returns>The next assembled Message.</returns>
   23 
   24     Message unflattenMessage(Stream inputStream);
   25     
   26     /// <summary>
   27     /// Converts the given Message into bytes and sends it out the stream.
   28     /// </summary>
   29     ///
   30     /// <param name="outputStream"/>
   31     /// <param name="msg"/>
   32     /// <exception cref="IOException"/>
   33 
   34     void flattenMessage(Stream outputStream, Message msg);
   35   }
   36 }