You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
573 B

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 Module.Socket.Tool
{
/// <summary>
/// 发送数据
/// </summary>
public class CustomFrameEncoder : MessageToByteEncoder<byte[]>
{
protected override void Encode(IChannelHandlerContext context, byte[] message, IByteBuffer output)
{
output.WriteBytes(message);
}
}
}