AiCPlayer
Interface of aic vm - for rendering aspect, sensors, video records
Functions
protobuf_framing.c File Reference

Provide utilities for sending protobufs. More...

#include <amqp.h>
#include <stdint.h>
#include <string.h>
#include "protobuf_framing.h"
Include dependency graph for protobuf_framing.c:

Go to the source code of this file.

Functions

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. More...
 
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. More...
 

Detailed Description

Provide utilities for sending protobufs.

Definition in file protobuf_framing.c.

Function Documentation

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.

Convert unsigned int to varint32

Definition at line 13 of file protobuf_framing.c.

Here is the caller graph for this function:

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.

Write a protobuf, with a varint32 framing, and padding at the end

Definition at line 31 of file protobuf_framing.c.

Here is the call graph for this function:

Here is the caller graph for this function: