Tor
0.4.7.0-alpha-dev
|
Header for feature/metrics/metrics.c. More...
#include "lib/buf/buffers.h"
#include "lib/container/smartlist.h"
#include "app/config/or_options_st.h"
#include "lib/metrics/metrics_common.h"
Go to the source code of this file.
Functions | |
void | metrics_init (void) |
void | metrics_cleanup (void) |
buf_t * | metrics_get_output (const metrics_format_t fmt) |
int | metrics_connection_process_inbuf (struct connection_t *conn) |
int | metrics_connection_reached_eof (struct connection_t *conn) |
int | metrics_connection_finished_flushing (struct connection_t *conn) |
int | metrics_parse_ports (or_options_t *options, smartlist_t *ports, char **err_msg_out) |
Header for feature/metrics/metrics.c.
Definition in file metrics.h.
void metrics_cleanup | ( | void | ) |
int metrics_connection_finished_flushing | ( | connection_t * | conn | ) |
Called when conn has no more bytes left on its outbuf. Return 0 indicating success.
Definition at line 264 of file metrics.c.
Referenced by connection_finished_flushing().
int metrics_connection_process_inbuf | ( | connection_t * | conn | ) |
Process what is in the inbuf of this connection of type metrics.
Return 0 on success else -1 on error for which the connection is marked for close.
Definition at line 100 of file metrics.c.
Referenced by connection_process_inbuf().
int metrics_connection_reached_eof | ( | connection_t * | conn | ) |
Called when conn has gotten its socket closed.
Definition at line 252 of file metrics.c.
Referenced by connection_reached_eof().
buf_t* metrics_get_output | ( | const metrics_format_t | fmt | ) |
int metrics_parse_ports | ( | or_options_t * | options, |
smartlist_t * | ports, | ||
char ** | err_msg_out | ||
) |