OpenVPN
Macros | Functions
status.c File Reference
#include "syshead.h"
#include "status.h"
#include "perf.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_outputstatus_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)
 
bool status_trigger_tv (struct status_output *so, struct timeval *tv)
 
void status_reset (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 236 of file status.c.

Referenced by status_printf().

Function Documentation

◆ print_status_mode()

static const char* print_status_mode ( unsigned int  flags)
static

Definition at line 44 of file status.c.

References STATUS_OUTPUT_READ, and STATUS_OUTPUT_WRITE.

Referenced by status_open().

◆ status_close()

bool status_close ( struct status_output so)

◆ status_flush()

void status_flush ( struct status_output so)

◆ status_open()

struct status_output* status_open ( const char *  filename,
const int  refresh_freq,
const int  msglevel,
const struct virtual_output vout,
const unsigned int  flags 
)

◆ status_printf()

void status_printf ( struct status_output so,
const char *  format,
  ... 
)

◆ status_read()

bool status_read ( struct status_output so,
struct buffer buf 
)

◆ status_reset()

void status_reset ( struct status_output so)

Definition at line 163 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)

◆ status_trigger_tv()

bool status_trigger_tv ( struct status_output so,
struct timeval *  tv 
)

Definition at line 150 of file status.c.

References status_output::et, ETT_DEFAULT, and event_timeout_trigger().

Referenced by check_status_file().