ze-filter  (ze-filter-0.8.0-develop-180218)
ze-connopen.c File Reference
#include <ze-sys.h>
#include "ze-filter.h"

Go to the source code of this file.

Classes

struct  OpenConn_T
 

Macros

#define SZ_NAME   64
 
#define DTCLEANUP   600
 
#define DATA_LOCK()
 
#define DATA_UNLOCK()
 

Typedefs

typedef struct OpenConn_T OpenConn_T
 

Functions

void connopen_reset ()
 
int connopen_check_host (char *ip, char *name, int nb)
 
bool connopen_clean_table ()
 
void connopen_print_table (int fd)
 

Variables

int logfd = -1
 

Macro Definition Documentation

◆ DATA_LOCK

#define DATA_LOCK ( )
Value:
if (pthread_mutex_lock(&hdata.mutex) != 0) { \
ZE_LogSysError("pthread_mutex_lock"); \
}

Definition at line 70 of file ze-connopen.c.

◆ DATA_UNLOCK

#define DATA_UNLOCK ( )
Value:
if (pthread_mutex_unlock(&hdata.mutex) != 0) { \
ZE_LogSysError("pthread_mutex_unlock"); \
}

Definition at line 75 of file ze-connopen.c.

◆ DTCLEANUP

#define DTCLEANUP   600

Definition at line 38 of file ze-connopen.c.

◆ SZ_NAME

#define SZ_NAME   64

Definition at line 35 of file ze-connopen.c.

Typedef Documentation

◆ OpenConn_T

typedef struct OpenConn_T OpenConn_T

Variable Documentation

◆ db_open

ZEBT_T db_open

Definition at line 65 of file ze-connopen.c.

◆ last

time_t last

Definition at line 60 of file ze-connopen.c.

◆ logfd

int logfd = -1

Definition at line 295 of file ze-connopen.c.

◆ mutex

pthread_mutex_t mutex

Definition at line 63 of file ze-connopen.c.

◆ nb

int nb

Definition at line 61 of file ze-connopen.c.

◆ ok

bool ok

Definition at line 59 of file ze-connopen.c.