C# Class FastNetwork.Protocol.DefaultBinaryProtocol

异步二进制协议 协议格式 [Message Length(int32)][SeqID(int32)][Body Buffer]
Inheritance: IProtocol
Show file Open project: zhujunxxxxx/FastNetwork Class Usage Examples

Public Methods

Method Description
TryToTranslateMessage ( IConnection connection, ArraySegment buffer, int maxMessageSize, int &readlength ) : ReceivePacket

find command

Method Details

TryToTranslateMessage() public method

find command
bad async binary protocl
public TryToTranslateMessage ( IConnection connection, ArraySegment buffer, int maxMessageSize, int &readlength ) : ReceivePacket
connection IConnection
buffer ArraySegment
maxMessageSize int
readlength int
return ReceivePacket