19 #define EXT_OR_CMD_HEADER_SIZE 4
void buf_drain(buf_t *buf, size_t n)
size_t buf_datalen(const buf_t *buf)
void buf_peek(const buf_t *buf, char *string, size_t string_len)
int buf_get_bytes(buf_t *buf, char *string, size_t string_len)
Header file for buffers.c.
static uint16_t get_uint16(const void *cp)
Master header file for Tor-specific functionality.
#define EXT_OR_CMD_HEADER_SIZE
int fetch_ext_or_command_from_buf(buf_t *buf, ext_or_cmd_t **out)
Header for proto_ext_or.c.
ext_or_cmd_t * ext_or_cmd_new(uint16_t len)