BedrockFramework
BedrockFramework copied to clipboard
Framing - Variable Size Length Fielded Protocol
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 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.
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. :)
I've been thinking about whether the Header
should be struct
or class
. It would be nice if it wasn't allocated memory either.