"Fossies" - the Fresh Open Source Software Archive

Member "pidentd-3.0.19/src/request.h" (14 Jan 2000, 876 Bytes) of package /linux/misc/old/pidentd-3.0.19.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "request.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2 ** request.h - Handle an IDENT protocol request
    3 **
    4 ** Copyright (c) 1997 Peter Eriksson <pen@lysator.liu.se>
    5 **
    6 ** This program is free software; you can redistribute it and/or
    7 ** modify it as you wish - as long as you don't claim that you wrote
    8 ** it.
    9 **
   10 ** This program is distributed in the hope that it will be useful,
   11 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
   12 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   13 */
   14 
   15 #ifndef PIDENTD_REQUEST_H
   16 #define PIDENTD_REQUEST_H
   17 
   18 #include <sys/types.h>
   19 #include <netinet/in.h>
   20 
   21 struct request
   22 {
   23     int fd;
   24     struct sockaddr_gen addr;
   25     socklen_t addr_len;
   26 };
   27 
   28 extern int extensions_enabled;
   29 extern int multiquery_enabled;
   30 extern int request_timeout;
   31 extern int requests_max;
   32 
   33 extern void *request_thread(void *);
   34 extern int request_init(void);
   35 extern int request_run(int fd, int nofork);
   36 
   37 #endif