using DotNetty.Buffers;
using DotNetty.Codecs;
using DotNetty.Common.Utilities;
using DotNetty.Transport.Channels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HybirdFrameworkServices
{
///
/// 发送数据
///
public class CustomFrameEncoder : MessageToByteEncoder
{
protected override void Encode(IChannelHandlerContext context, byte[] message, IByteBuffer output)
{
output.WriteBytes(message);
}
}
}