|
|
|
|
|
by sobakistodor
1756 days ago
|
|
We develop Web in C++ and all our protocols looks like this: 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". |
|
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.