EDGESEC  0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
protobuf_encoder.h
Go to the documentation of this file.
1 
11 #ifndef PROTOBUF_ENCODER_H
12 #define PROTOBUF_ENCODER_H
13 
14 #include "../header_middleware/packet_decoder.h"
15 
23 ssize_t encode_protobuf_packet(struct tuple_packet *tp, uint8_t **buffer);
24 
32 ssize_t encode_protobuf_sync_wrapper(struct tuple_packet *tp, uint8_t **buffer);
33 #endif
ssize_t encode_protobuf_sync_wrapper(struct tuple_packet *tp, uint8_t **buffer)
Encodes the packet into a wrapper protobuf message.
Definition: protobuf_encoder.c:407
ssize_t encode_protobuf_packet(struct tuple_packet *tp, uint8_t **buffer)
Encodes the packet into a protobuf message.
Definition: packet_decoder.h:40