5 #ifndef __PROTOBUF_FRAMING_H_
6 #define __PROTOBUF_FRAMING_H_
int socket_t
Alias to differenciate between regular ints and socket fds.
int write_protobuf(socket_t sock, amqp_envelope_t *envelope)
Write a protobuf, with a varint32 framing, and padding at the end from an envelope.
uint32_t convert_framing_size(uint32_t len, uint8_t *bytes)
Convert an unsigned int to varint32 so that google’s C++ protobuf libs can read it.
Define socket utilities to simplify networking.