3 #include <netinet/in.h>
8 #include <ProtobufRpcEngine.pb.h>
19 bool write_int32(tcp::socket &sock, uint32_t val);
24 bool write_int16(tcp::socket &sock, uint16_t val);
29 bool write_byte(tcp::socket &sock,
unsigned char byte);
34 bool write_varint(tcp::socket &sock, uint32_t val);
39 bool write_proto(tcp::socket &sock, std::string &proto_bytes);
44 bool write_delimited_proto(tcp::socket &sock, std::string &proto_bytes);