Open myonara opened 3 months ago
We will not support the EOR (End of Record) option because our client is designed to handle a continuous data stream rather than segmented records. However, EOR could be beneficial as it may help to logically separate output segments, which might improve data readability and processing. This feature could be valuable in the future if we find that distinguishing between output chunks would enhance the client’s performance or usability.
Furthermore, this option requires reading the data stream for IAC commands, like TIMING MARK does. If we ever implement this, we can implement TIMING MARK as well. See https://github.com/unitopia-de/webmud3/issues/129
After reconsidering, I have changed my opinion on implementing the EOR (End of Record) option. I now believe EOR provides significant value to the client by allowing structured segmentation of the data stream, which can improve data readability and processing efficiency.
As a result, I have implemented EOR support in the linked PR. The implementation adheres to the expected workflow, ensuring proper negotiation and processing of data records marked with the EOR command.
Additionally, during implementation, I found that the manipulation of the data stream is less intrusive than I initially thought. The changes are minimal and do not interfere with the overall handling of the Telnet data stream. This makes EOR a lightweight yet impactful feature for our client.
Description: Implement support for the Telnet EOR (End of Record) option to allow structured data segmentation in the communication stream. The EOR option is used to mark the end of a logical data "record" or unit, which is useful in applications that process data in defined chunks rather than as a continuous stream. This option is particularly valuable for MUD clients that need to handle structured or transactional data exchanges.
Details:
Option Code: 25
Functionality:
IAC DO EOR
to the server.IAC EOR
marker, allowing the client to recognize and process complete data units.Expected Workflow:
IAC DO EOR
to request EOR support.IAC WILL EOR
from the server, the client and server begin using the EOR marker to signify record boundaries.IAC EOR
at the end of each record and processes the data accordingly upon receipt.Acceptance Criteria:
IAC EOR
.References: