ModUdp.cc File Reference
#include "squid.h"
#include "comm.h"
#include "comm/Connection.h"
#include "fatal.h"
#include "fd.h"
#include "fs_io.h"
#include "log/File.h"
#include "log/ModUdp.h"
#include "Parsing.h"
#include "SquidConfig.h"
#include <cerrno>
Include dependency graph for ModUdp.cc:

Go to the source code of this file.

Classes

struct  l_udp_t
 

Functions

static void logfile_mod_udp_write (Logfile *lf, const char *buf, size_t len)
 
static void logfile_mod_udp_flush (Logfile *lf)
 
static void logfile_mod_udp_writeline (Logfile *lf, const char *buf, size_t len)
 
static void logfile_mod_udp_linestart (Logfile *)
 
static void logfile_mod_udp_lineend (Logfile *lf)
 
static void logfile_mod_udp_rotate (Logfile *, const int16_t)
 
static void logfile_mod_udp_close (Logfile *lf)
 
int logfile_mod_udp_open (Logfile *lf, const char *path, size_t bufsz, int fatal_flag)
 

Function Documentation

◆ logfile_mod_udp_close()

static void logfile_mod_udp_close ( Logfile lf)
static

Definition at line 116 of file ModUdp.cc.

References l_udp_t::buf, Logfile::data, Logfile::f_flush, l_udp_t::fd, file_close(), and xfree.

Referenced by logfile_mod_udp_open().

◆ logfile_mod_udp_flush()

static void logfile_mod_udp_flush ( Logfile lf)
static

◆ logfile_mod_udp_lineend()

static void logfile_mod_udp_lineend ( Logfile lf)
static

Definition at line 104 of file ModUdp.cc.

References SquidConfig::buffered_logs, Config, Logfile::f_flush, and SquidConfig::onoff.

Referenced by logfile_mod_udp_open().

◆ logfile_mod_udp_linestart()

static void logfile_mod_udp_linestart ( Logfile )
static

Definition at line 99 of file ModUdp.cc.

Referenced by logfile_mod_udp_open().

◆ logfile_mod_udp_open()

◆ logfile_mod_udp_rotate()

static void logfile_mod_udp_rotate ( Logfile ,
const int16_t   
)
static

Definition at line 111 of file ModUdp.cc.

Referenced by logfile_mod_udp_open().

◆ logfile_mod_udp_write()

static void logfile_mod_udp_write ( Logfile lf,
const char *  buf,
size_t  len 
)
static

◆ logfile_mod_udp_writeline()

static void logfile_mod_udp_writeline ( Logfile lf,
const char *  buf,
size_t  len 
)
static

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors