libosmocore 1.9.0.196-9975
Osmocom core library
stats_tcp.h
Go to the documentation of this file.
1#pragma once
2
3#define TCP_STATS_DEFAULT_INTERVAL 0 /* secs */
4#define TCP_STATS_DEFAULT_BATCH_SIZE 5 /* sockets per interval */
5
7 /* poll interval in seconds, use osmo_stats_tcp_set_interval() to manipulate this value */
9 /* specify how many sockets are processed when the interval timer expires */
11};
13
14int osmo_stats_tcp_osmo_fd_register(const struct osmo_fd *fd, const char *name);
15int 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)
Register an osmo_fd for TCP stats monitoring.
Definition: stats_tcp.c:242
struct osmo_tcp_stats_config * osmo_tcp_stats_config
Definition: stats_tcp.c:50
int osmo_stats_tcp_osmo_fd_register(const struct osmo_fd *fd, const char *name)
Register an osmo_fd for TCP stats monitoring.
Definition: stats_tcp.c:194
int osmo_stats_tcp_set_interval(int interval)
Set the polling interval (common for all sockets)
Definition: stats_tcp.c:305
Structure representing a file dsecriptor.
Definition: select.h:31
Definition: stats_tcp.h:6
int interval
Definition: stats_tcp.h:8
int batch_size
Definition: stats_tcp.h:10