Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High-level caf-net primitive for custom text protocols #1408

Open
Neverlord opened this issue May 11, 2023 · 0 comments
Open

High-level caf-net primitive for custom text protocols #1408

Neverlord opened this issue May 11, 2023 · 0 comments

Comments

@Neverlord
Copy link
Member

Neverlord commented May 11, 2023

From a recent chat discussion: caf.net currently has no high-level primitives to implement custom text protocols like telnet, that split incoming characters into individual messages (in the case of telnet simply by splitting at the newline character).

Ideally, we'd provide an interface in caf.net where users can construct a protocol with a parser of some sort that receives incoming bytes and emits "messages" to a flow. In the case of telnet, that would be trivial: buffer inputs until finding a newline and then emit the line as one message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant