libosmocore 1.14.2.11-4ba7
Osmocom core library
stats_tcp.h
Go to the documentation of this file.
1#pragma once
2
3struct osmo_fd;
4
5#define TCP_STATS_DEFAULT_INTERVAL 0 /* secs */
6#define TCP_STATS_DEFAULT_BATCH_SIZE 5 /* sockets per interval */
7
9 /* poll interval in seconds, use osmo_stats_tcp_set_interval() to manipulate this value */
11 /* specify how many sockets are processed when the interval timer expires */
13};
15
16int osmo_stats_tcp_osmo_fd_register(const struct osmo_fd *fd, const char *name);
17int osmo_stats_tcp_osmo_fd_unregister(const struct osmo_fd *fd);
const char * name
int osmo_stats_tcp_osmo_fd_unregister(const struct osmo_fd *fd)
Definition: stats_tcp.c:340
struct osmo_tcp_stats_config * osmo_tcp_stats_config
Definition: stats_tcp.c:55
int osmo_stats_tcp_osmo_fd_register(const struct osmo_fd *fd, const char *name)
Definition: stats_tcp.c:335
int osmo_stats_tcp_set_interval(int interval)
Definition: stats_tcp.c:345
Structure representing a file dsecriptor.
Definition: select.h:31
Definition: stats_tcp.h:8
int interval
Definition: stats_tcp.h:10
int batch_size
Definition: stats_tcp.h:12