Sic.Framework-Nanjing-Baishi/MECF.Framework.Common/MECF/Framework/Common/Communications/Tcp/Socket/Framing/FixedLengthFrameBuilder.cs

18 lines
508 B
C#
Raw Normal View History

2023-04-13 11:51:03 +08:00
using MECF.Framework.Common.Communications.Tcp.Socket.Framing.Base;
namespace MECF.Framework.Common.Communications.Tcp.Socket.Framing
{
public sealed class FixedLengthFrameBuilder : FrameBuilder
{
public FixedLengthFrameBuilder(int fixedFrameLength)
: this(new FixedLengthFrameEncoder(fixedFrameLength), new FixedLengthFrameDecoder(fixedFrameLength))
{
}
public FixedLengthFrameBuilder(FixedLengthFrameEncoder encoder, FixedLengthFrameDecoder decoder)
: base(encoder, decoder)
{
}
}
}