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.
22 lines
515 B
22 lines
515 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
|
|
{
|
|
public class CustomFrameEncoder : MessageToByteEncoder<byte[]>
|
|
{
|
|
|
|
protected override void Encode(IChannelHandlerContext context, byte[] message, IByteBuffer output)
|
|
{
|
|
output.WriteBytes(message);
|
|
}
|
|
}
|
|
}
|