Loading...
Searching...
No Matches
stats_tcp.h
Go to the documentation of this file.
#pragma once
#define TCP_STATS_DEFAULT_INTERVAL 0 /* secs */
#define TCP_STATS_DEFAULT_BATCH_SIZE 5 /* sockets per interval */
struct osmo_tcp_stats_config {
/* poll interval in seconds, use osmo_stats_tcp_set_interval() to manipulate this value */
int interval;
/* specify how many sockets are processed when the interval timer expires */
int batch_size;
};
extern struct osmo_tcp_stats_config *osmo_tcp_stats_config;
int osmo_stats_tcp_osmo_fd_register(const struct osmo_fd *fd, const char *name);
int osmo_stats_tcp_osmo_fd_unregister(const struct osmo_fd *fd);
int osmo_stats_tcp_set_interval(int interval);
osmo_stats_tcp_osmo_fd_unregister
int osmo_stats_tcp_osmo_fd_unregister(const struct osmo_fd *fd)
Definition stats_tcp.c:340
osmo_stats_tcp_osmo_fd_register
int osmo_stats_tcp_osmo_fd_register(const struct osmo_fd *fd, const char *name)
Definition stats_tcp.c:335
osmo_stats_tcp_set_interval
int osmo_stats_tcp_set_interval(int interval)
Definition stats_tcp.c:345
name
char name[32]
source file name
Definition gsmtap.h:11
osmo_fd
Structure representing a file dsecriptor.
Definition select.h:31
osmo_tcp_stats_config
Definition stats_tcp.h:6
osmo_tcp_stats_config::interval
int interval
Definition stats_tcp.h:8
osmo_tcp_stats_config::batch_size
int batch_size
Definition stats_tcp.h:10