// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Discard.Server { using System; using DotNetty.Transport.Channels; public class DiscardServerHandler : SimpleChannelInboundHandler { protected override void ChannelRead0(IChannelHandlerContext context, object message) { } public override void ExceptionCaught(IChannelHandlerContext ctx, Exception e) { Console.WriteLine("{0}", e.ToString()); ctx.CloseAsync(); } } }