From: Thibault Godouet Date: Sat, 2 Mar 2002 17:29:50 +0000 (+0000) Subject: socket.c's header file (creater dyncom.h) X-Git-Tag: ver2_9_4~173 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94d45f383613f759e9518d14184584952a5a5c03;p=thirdparty%2Ffcron.git socket.c's header file (creater dyncom.h) --- diff --git a/socket.h b/socket.h index 60b1c97..8b090ed 100644 --- a/socket.h +++ b/socket.h @@ -21,17 +21,36 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: socket.h,v 1.1 2002-02-25 18:46:54 thib Exp $ */ + /* $Id: socket.h,v 1.2 2002-03-02 17:29:50 thib Exp $ */ + +/* This file describe the communication protocol between fcron and fcrondyn */ #ifndef __SOCKET_H__ #define __SOCKET_H__ -#ifdef HAVE_SYS_TYPES_H -#include -#endif +#include "dyncom.h" + + +/* public var defined by socket.c */ +extern fd_set read_set; +extern int set_max_fd; + +/* functions prototypes */ +extern void init_socket(void); +extern void check_socket(int num); +extern void close_socket(void); + + + +/* struct used by fcron : */ +typedef struct fcrondyn_cl { + struct fcrondyn_cl *fcl_next; + int fcl_sock_fd; + char *fcl_user; + time_t fcl_idle_since; + int fcl_cmd_len; + long int *fcl_cmd; +} fcrondyn_cl; -#ifdef HAVE_SYS_SOCKET_H -#include -#endif #endif /* __SOCKET_H__ */