Add framing to proto, since it isn't built in to protobuf.

This commit is contained in:
Ian Gulliver
2016-02-23 21:30:29 -08:00
parent c70886e55c
commit 025d14c6a6
2 changed files with 24 additions and 5 deletions

View File

@@ -120,6 +120,7 @@ struct serializer *send_get_serializer(char *name) {
void send_add(int fd, struct serializer *serializer) {
if (!send_hello(fd, serializer)) {
fprintf(stderr, "S xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx: Failed to write hello\n");
assert(!close(fd));
return;
}