IUdpDialect
The interface describing the dialect of the UDP protocol.
Implements: IMessageAdapter, IMessageTransport, IPersistable, ILogReceiver, ILogSource, IDisposable, ICloneable<IMessageAdapter>, ICloneable
Properties
public bool DumpPacketOnError { get; set; }
value = iUdpDialect.DumpPacketOnError
iUdpDialect.DumpPacketOnError = value
When true, logs the full UDP packet payload as Base64 when processing fails. Intended for diagnostics/deserialization of problematic packets.
public int MaxIncomingQueueSize { get; set; }
value = iUdpDialect.MaxIncomingQueueSize
iUdpDialect.MaxIncomingQueueSize = value
Maximum buffered incoming UDP packets per feed before new packets are dropped.
public int MaxIncrementalWrongOrder { get; set; }
value = iUdpDialect.MaxIncrementalWrongOrder
iUdpDialect.MaxIncrementalWrongOrder = value
Max incremental messages with wrong order before recovering start.
public int MaxRestoreCount { get; set; }
value = iUdpDialect.MaxRestoreCount
iUdpDialect.MaxRestoreCount = value
Max message count that can be restored.
public int MaxRestores { get; set; }
value = iUdpDialect.MaxRestores
iUdpDialect.MaxRestores = value
Max possible restores.
public int MaxSuspended { get; set; }
value = iUdpDialect.MaxSuspended
iUdpDialect.MaxSuspended = value
Max suspended messages.
public int MaxUdpDatagramSize { get; set; }
value = iUdpDialect.MaxUdpDatagramSize
iUdpDialect.MaxUdpDatagramSize = value
Maximum UDP datagram size.
public bool UseUdpResnapshot { get; set; }
value = iUdpDialect.UseUdpResnapshot
iUdpDialect.UseUdpResnapshot = value
Use UDP re-snapshot instead of TCP replay for restoring gaps.
Methods
public IMemoryOwner<byte> AllocatePacket(ILogReceiver logs, int size)
result = iUdpDialect.AllocatePacket(logs, size)
To allocate a packet of the specified size.
- logs
- The log receiver to log information about memory pool status.
- size
- The size of the packet to allocate.
Returns: The packet.
public IUdpSettingsParser CreateParser()
result = iUdpDialect.CreateParser()
Create a new instance of the IUdpSettingsParser class.
Returns: IUdpSettingsParser
public void LoadSettingsFromFile(IDictionary<string, UdpFeedGroup> feeds)
iUdpDialect.LoadSettingsFromFile(feeds)
Load settings from specified file.
- feeds
- UDP settings.