pidentd  3.0.19
About: implementation of the RFC1413 identification server (more or less complete rewrite compared to version 2)
  Fossies Dox: pidentd-3.0.19.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

request.c File Reference
#include "config.h"
#include <stdio.h>
#include <ctype.h>
#include <errno.h>
#include <syslog.h>
#include <stdlib.h>
#include <string.h>
#include "pidentd.h"
Include dependency graph for request.c:

Go to the source code of this file.

Functions

static int handle_request (int fd, char *buf, struct sockaddr_in *remote_addr)
 
static void timeout_handler (void *arg)
 
void * request_thread (void *vp)
 
int request_run (int fd, int nofork)
 
int request_init (void)
 

Variables

int extensions_enabled = 0
 
int multiquery_enabled = 0
 
int request_timeout = 120
 
int requests_max = 0
 
int requests_cur
 
int requests_mtx
 
int requests_cv
 

Function Documentation

◆ handle_request()

static int handle_request ( int  fd,
char *  buf,
struct sockaddr_in *  remote_addr 
)
static

◆ request_init()

int request_init ( void  )

Definition at line 310 of file request.c.

References pthread_cond_init(), pthread_mutex_init(), requests_cur, requests_cv, and requests_mtx.

Referenced by main().

◆ request_run()

◆ request_thread()

◆ timeout_handler()

static void timeout_handler ( void *  arg)
static

Definition at line 146 of file request.c.

References debug, and request::fd.

Referenced by request_thread().

Variable Documentation

◆ extensions_enabled

int extensions_enabled = 0

Definition at line 29 of file request.c.

Referenced by conf_parse(), handle_request(), and main().

◆ multiquery_enabled

int multiquery_enabled = 0

Definition at line 30 of file request.c.

Referenced by conf_parse(), main(), and request_thread().

◆ request_timeout

int request_timeout = 120

Definition at line 31 of file request.c.

Referenced by conf_parse(), main(), and request_thread().

◆ requests_cur

int requests_cur

Definition at line 34 of file request.c.

Referenced by request_init(), request_run(), and request_thread().

◆ requests_cv

int requests_cv

Definition at line 36 of file request.c.

Referenced by request_init(), request_run(), and request_thread().

◆ requests_max

int requests_max = 0

Definition at line 33 of file request.c.

Referenced by conf_parse(), request_run(), and request_thread().

◆ requests_mtx

int requests_mtx

Definition at line 35 of file request.c.

Referenced by request_init(), request_run(), and request_thread().