TelegramFormatSelectorSelectInboundTelegramFormats Method |
Namespace: Demo3D.HLE.Comms.Telegram
public virtual IEnumerable<(TelegramFormat Format, BufferSegment Telegram)>? SelectInboundTelegramFormats( IEnumerable<TelegramFormat> formats, BufferSegment telegram )
This method returns a list of tuples, each containing the selected format and its corresponding telegram data extracted from the received data.
The default implementation of this method just returns null, which defers selection back to the default implementation of SelectInboundTelegramFormat(IEnumerableTelegramFormat, BufferSegment). This method should only be extended when the received telegram data is expected to contain multiple or incomplete telegrams, usually as a result of the underlying transport protocol being stream-based (e.g. TCP).