(no title)
sobakistodor | 4 years ago
serializer.put<uint32_t>(item).put(another).put(this);
if (writer.valid()) {
// no overflows or other problems
socketwriter.write(serializer.data());
}
Simple. Bytes. Dont care about any "protocols".
Jtsummers|4 years ago
You have a protocol there, you have an understanding of what's expected on either side of that communication. That is the definition of a protocol. And if that's for Web stuffs, as you say, then you must be implementing something related to HTTP/HTTPS, protocols.
eitland|4 years ago
Sent over UDP this had stood the test of time for a couple decades or so.
Disadvantage: the rest of the system was also written in C++ and it was impossible to get those who had access to the source code and knew it to fix anything. As a result the system looked more and more antiquated and there were more and more hoops to jump through to get it working with every new version of Windows:-/
Edit: that said, I think your comment is a bit off topic :-)
selfhoster11|4 years ago
southerntofu|4 years ago
ajconway|4 years ago
lelanthran|4 years ago