## modules/sv/server.h

/* [<][>][^][v][top][bottom][index][help] */

## FUNCTIONS

This source file includes following functions.

       1 #ifndef READ_SERVER
       2 #define READ_SERVER
       3
       4 /***************************************
       5   $Revision: 1.9 $
       6
       7   Server module (sv)
       8   config module.
       9
      10   Status: NOT REVUED, NOT TESTED
      11
      12   ******************/ /******************
      13   Copyright (c) 1999                              RIPE NCC
      14
      15   All Rights Reserved
      16
      17   Permission to use, copy, modify, and distribute this software and its
      18   documentation for any purpose and without fee is hereby granted,
      19   provided that the above copyright notice appear in all copies and that
      20   both that copyright notice and this permission notice appear in
      21   supporting documentation, and that the name of the author not be
      22   used in advertising or publicity pertaining to distribution of the
      23   software without specific, written prior permission.
      24
      25   THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
      26   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS; IN NO EVENT SHALL
      27   AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
      28   DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
      29   AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
      30   OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
      31   ***************************************/
      32
      33 /* Interrupts/Locks */
      34 #define MAX_LOCKS    4
      35 #define LOCK_SHTDOWN 0 /* here we store the read end of the pipe */
      36 #define WLOCK_SHTDOWN 1 /* here we store the write end of the pipe */
      37 #define LOCK_UPDATES 2 /* here we store the read end of the pipe */
      38 #define WLOCK_UPDATES 3 /* here we store the write end of the pipe */
      39
      40 /* Timeslice in seconds for sleep */
      41 #define TIME_SLICE 1
      42
      43 typedef struct _wd_args_t {
      44   int connected_socket;
      45   pthread_t tid;
      46 } wd_args_t;
      47
      48
      49
      50
      51 void SV_start();
      52 void SV_shutdown();
      53 int SV_sleep(int sleeptime);
      54 void *SV_signal_thread();
      55 void SV_watchdog(wd_args_t *wd_args);
      56
      57
      58
      59
      60
      61 #endif /* READ_SERVER */

/* [<][>][^][v][top][bottom][index][help] */