squirrelmail-webmail  1.4.22
About: SquirrelMail is a standards-based webmail package with strong MIME support, address books, and folder manipulation (written in PHP4).
  Fossies Dox: squirrelmail-webmail-1.4.22.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

bulkquery.c File Reference
#include <arpa/nameser.h>
#include <lwres/lwres.h>
#include <strings.h>
#include <stdio.h>
#include <pthread.h>
Include dependency graph for bulkquery.c:

Go to the source code of this file.

Classes

struct  ipnode
 

Macros

#define BUFLEN   1024
 
#define MAXSTR   80
 
#define MAXTHREADS   50
 
#define MAXRBLS   40
 
#define DEFTTL   600
 

Typedefs

typedef struct ipnodeiplist
 

Functions

void do_queries ()
 
void GetRBLs ()
 
 main ()
 

Variables

int errno
 
int h_errno
 
iplist IPs
 
pthread_mutex_t * mutexp
 
pthread_mutex_t * mutexoutput
 
char * dnsrbls [40]
 
int numrbls
 
int numthreads
 
int numqueries
 
int defttl
 

Macro Definition Documentation

◆ BUFLEN

#define BUFLEN   1024

Definition at line 9 of file bulkquery.c.

◆ DEFTTL

#define DEFTTL   600

Definition at line 13 of file bulkquery.c.

◆ MAXRBLS

#define MAXRBLS   40

Definition at line 12 of file bulkquery.c.

◆ MAXSTR

#define MAXSTR   80

Definition at line 10 of file bulkquery.c.

◆ MAXTHREADS

#define MAXTHREADS   50

Definition at line 11 of file bulkquery.c.

Typedef Documentation

◆ iplist

typedef struct ipnode* iplist

Definition at line 20 of file bulkquery.c.

Function Documentation

◆ do_queries()

void do_queries ( )

Definition at line 34 of file bulkquery.c.

References defttl, ipnode::IP, IPs, mutexp, n, ipnode::next, NULL, and response.

Referenced by main().

◆ GetRBLs()

void GetRBLs ( )

Definition at line 83 of file bulkquery.c.

References dnsrbls, exit, MAXRBLS, MAXSTR, NULL, and numrbls.

Referenced by main().

◆ main()

Variable Documentation

◆ defttl

int defttl

Definition at line 32 of file bulkquery.c.

Referenced by do_queries(), and main().

◆ dnsrbls

char* dnsrbls[40]

Definition at line 31 of file bulkquery.c.

Referenced by GetRBLs(), and main().

◆ errno

int errno

◆ h_errno

int h_errno

◆ IPs

iplist IPs

Definition at line 26 of file bulkquery.c.

Referenced by do_queries(), and main().

◆ mutexoutput

pthread_mutex_t* mutexoutput

Definition at line 29 of file bulkquery.c.

Referenced by main().

◆ mutexp

pthread_mutex_t* mutexp

Definition at line 28 of file bulkquery.c.

Referenced by do_queries(), and main().

◆ numqueries

int numqueries

Definition at line 32 of file bulkquery.c.

Referenced by main().

◆ numrbls

int numrbls

Definition at line 32 of file bulkquery.c.

Referenced by GetRBLs(), and main().

◆ numthreads

int numthreads

Definition at line 32 of file bulkquery.c.

Referenced by main().