public WebSocketChunkedInput(IChunkedInput <IByteBuffer> input, int rsv)
        {
            Contract.Requires(input != null);

            this.input = input;
            this.rsv   = rsv;
        }
Exemplo n.º 2
0
        public WebSocketChunkedInput(IChunkedInput <IByteBuffer> input, int rsv)
        {
            if (input is null)
            {
                ThrowHelper.ThrowArgumentNullException(ExceptionArgument.input);
            }

            this.input = input;
            this.rsv   = rsv;
        }
Exemplo n.º 3
0
 static void CloseInput(IChunkedInput <T> chunks)
 {
     try
     {
         chunks.Close();
     }
     catch (Exception exception)
     {
         if (Logger.IsWarnEnabled)
         {
             Logger.Warn("Failed to close a chunked input.", exception);
         }
     }
 }
Exemplo n.º 4
0
 private static void CloseInput(IChunkedInput <T> chunks)
 {
     try
     {
         chunks.Close();
     }
     catch (Exception exception)
     {
         if (Logger.WarnEnabled)
         {
             Logger.FailedToCloseAChunkedInput(exception);
         }
     }
 }
Exemplo n.º 5
0
 static void CloseInput(IChunkedInput <T> chunks)
 {
     try
     {
         chunks.Close();
     }
     catch (Exception exception)
     {
         //if (//Logger.WarnEnabled)
         //{
         //    //Logger.Warn("Failed to close a chunked input.", exception);
         //}
     }
 }
Exemplo n.º 6
0
 public HttpChunkedInput(IChunkedInput <IByteBuffer> input, ILastHttpContent lastHttpContent)
 {
     this.input           = input;
     this.lastHttpContent = lastHttpContent;
 }
Exemplo n.º 7
0
 public HttpChunkedInput(IChunkedInput <IByteBuffer> input)
 {
     this.input           = input;
     this.lastHttpContent = EmptyLastHttpContent.Default;
 }
Exemplo n.º 8
0
 public WebSocketChunkedInput(IChunkedInput <IByteBuffer> input)
     : this(input, 0)
 {
 }