IUdpDialect
StockSharp.Fix.Dialects
描述UDP协议方言的界面.
实现: IMessageAdapter, IMessageTransport, IPersistable, ILogReceiver, ILogSource, IDisposable, ICloneable<IMessageAdapter>, ICloneable
属性
DumpPacketOnError
public bool DumpPacketOnError { get; set; }
value = iUdpDialect.DumpPacketOnError
iUdpDialect.DumpPacketOnError = value
当真实时, 处理失败时将全部 UDP 包的有效载荷记录为 Base64。 用于诊断/ 解析有问题的包 。
MaxIncomingQueueSize
public int MaxIncomingQueueSize { get; set; }
value = iUdpDialect.MaxIncomingQueueSize
iUdpDialect.MaxIncomingQueueSize = value
在每个种子中, 在新包丢出之前, 最大缓冲收到的 UDP 包 。
MaxIncrementalWrongOrder
public int MaxIncrementalWrongOrder { get; set; }
value = iUdpDialect.MaxIncrementalWrongOrder
iUdpDialect.MaxIncrementalWrongOrder = value
恢复开始前, 顺序错误的 Max 递增消息 。
MaxRestoreCount
public int MaxRestoreCount { get; set; }
value = iUdpDialect.MaxRestoreCount
iUdpDialect.MaxRestoreCount = value
最大消息数可以恢复 。
MaxRestores
public int MaxRestores { get; set; }
value = iUdpDialect.MaxRestores
iUdpDialect.MaxRestores = value
Max可能恢复功能 可能恢复功能 可能恢复功能
MaxSuspended
public int MaxSuspended { get; set; }
value = iUdpDialect.MaxSuspended
iUdpDialect.MaxSuspended = value
Max 暂停消息 。
MaxUdpDatagramSize
public int MaxUdpDatagramSize { get; set; }
value = iUdpDialect.MaxUdpDatagramSize
iUdpDialect.MaxUdpDatagramSize = value
最大 UDP 数据格大小 。
UseUdpResnapshot
public bool UseUdpResnapshot { get; set; }
value = iUdpDialect.UseUdpResnapshot
iUdpDialect.UseUdpResnapshot = value
使用 UDP 重播后重播, 而不是 TCP 重播以恢复空隙 。
方法
AllocatePacket
public IMemoryOwner<byte> AllocatePacket(ILogReceiver logs, int size)
result = iUdpDialect.AllocatePacket(logs, size)
分配指定大小的包 。
- logs
- 日志接收器可以登录关于内存池状态的信息 。
- size
- 要分配的包大小 。
返回值: 包裹。
CreateParser
public IUdpSettingsParser CreateParser()
result = iUdpDialect.CreateParser()
创建 & > IUdpSettingsParser > 类的新实例 。
返回值: IUdpSettingsParser
LoadSettingsFromFile
public void LoadSettingsFromFile(IDictionary<string, UdpFeedGroup> feeds)
iUdpDialect.LoadSettingsFromFile(feeds)
从指定文件装入设置 。
- feeds
- UDP 设置 。