OpenVPN
status.c File Reference
#include "syshead.h"
#include "status.h"
#include "misc.h"
#include "fdmisc.h"
#include "memdbg.h"
Include dependency graph for status.c:

Go to the source code of this file.

Macros

#define STATUS_PRINTF_MAXLEN   512

Functions

static const char * print_status_mode (unsigned int flags)
struct status_output * status_open (const char *filename, const int refresh_freq, const int msglevel, const struct virtual_output *vout, const unsigned int flags)
bool status_trigger (struct status_output *so)
void status_reset (const struct status_output *so)
void status_flush (struct status_output *so)
bool status_close (struct status_output *so)
void status_printf (struct status_output *so, const char *format,...)
bool status_read (struct status_output *so, struct buffer *buf)

Macro Definition Documentation

◆ STATUS_PRINTF_MAXLEN

#define STATUS_PRINTF_MAXLEN   512

Definition at line 209 of file status.c.

Referenced by status_printf().

Function Documentation

◆ print_status_mode()

const char * print_status_mode ( unsigned int flags)
static

Definition at line 40 of file status.c.

References STATUS_OUTPUT_READ, and STATUS_OUTPUT_WRITE.

Referenced by status_open().

◆ status_close()

◆ status_flush()

◆ status_open()

◆ status_printf()

◆ status_read()

◆ status_reset()

void status_reset ( const struct status_output * so)

Definition at line 138 of file status.c.

References status_output::fd.

Referenced by ifconfig_pool_write(), multi_print_status(), and print_status().

◆ status_trigger()

bool status_trigger ( struct status_output * so)