BedrockFramework icon indicating copy to clipboard operation
BedrockFramework copied to clipboard

Framing - Variable Size Length Fielded Protocol

Open adamradocz opened this issue 2 years ago • 3 comments

Fixes #132

Added a framing protocol for a scenario when a frame is variable sized and the header's PayloadLength field is used to split the incoming stream. Plus implemented a sample client and server for this protocol.

Clean and conflict free version of #133

adamradocz avatar Feb 11 '22 13:02 adamradocz

@adamradocz Have you been using bedrock? I'd love to hear how, these PRs are great. I'm going to find some time to go through them.

davidfowl avatar Apr 30 '22 06:04 davidfowl

Thanks! Yes, I've been using Bedrock since January, and it's awesome. Mostly using this (Variable Size Length Fielded) protocol over TCP. Probably, I would use it over UDP as well, but I have no idea how to implement the server, so I'm hoping that somebody implements the QUIC protocol and so the UDP with that. :)

adamradocz avatar Apr 30 '22 19:04 adamradocz

I've been thinking about whether the Header should be struct or class. It would be nice if it wasn't allocated memory either.

adamradocz avatar Apr 30 '22 20:04 adamradocz