source: branches/port5/NAMES/names.h

Last change on this file was 6078, checked in by westram, 15 years ago
  • reduced shutdown time for nameserver to 2 min (hack around #192)
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 677 bytes
Line 
1
2#define MAX_TRY     20
3#define RETRY_SLEEP 3           // in seconds
4
5// Lifetime of nameserver in seconds
6#if defined(DEBUG)
7#define NAME_SERVER_TIMEOUT (1*60) // 1 minute (for debugging)
8#else
9// #define NAME_SERVER_TIMEOUT (15*60) // 15 minutes
10#define NAME_SERVER_TIMEOUT (2*60) // 2 minutes (see http://bugs.arb-home.de/ticket/192 why)
11#endif // DEBUG
12
13// Sleeptime of nameserver in seconds
14#define NAME_SERVER_SLEEP 5
15
16struct Hs_struct;
17struct AN_gl_struct {
18    aisc_com         *cl_link;
19    struct Hs_struct *server_communication;
20    T_AN_MAIN         cl_main;
21    char             *server_name;
22};
23extern struct AN_gl_struct AN_global;
24
25
26extern AN_main *aisc_main;
Note: See TracBrowser for help on using the repository browser.