src/protocols/zephyr/zephyr.h

changeset 10867
b39f9b646d6c
parent 7475
987384816492
child 11105
842fa517e08c
equal deleted inserted replaced
10866:40eab743e22b 10867:b39f9b646d6c
3 * 3 *
4 * Created by: Robert French 4 * Created by: Robert French
5 * 5 *
6 * $Source$ 6 * $Source$
7 * $Author: thekingant $ 7 * $Author: thekingant $
8 * $Id: zephyr.h 8088 2003-11-11 07:08:13Z thekingant $ 8 * $Id: zephyr.h 12553 2005-04-25 01:53:01Z thekingant $
9 * 9 *
10 * Copyright (c) 1987,1988,1991 by the Massachusetts Institute of 10 * Copyright (c) 1987,1988,1991 by the Massachusetts Institute of
11 * Technology. For copying and distribution information, see the 11 * Technology. For copying and distribution information, see the
12 * file "mit-copyright.h". 12 * file "mit-copyright.h".
13 */ 13 */
18 #include <config.h> 18 #include <config.h>
19 19
20 #include <sys/types.h> 20 #include <sys/types.h>
21 #include <sys/time.h> 21 #include <sys/time.h>
22 22
23 #include <zephyr/zephyr_err.h> 23 #include <zephyr_err.h>
24 24
25 #ifndef IPPROTO_MAX /* Make sure not already included */ 25 #ifndef IPPROTO_MAX /* Make sure not already included */
26 #ifndef WIN32
26 #include <netinet/in.h> 27 #include <netinet/in.h>
28 #endif
27 #endif 29 #endif
28 30
29 /* Use __STDC__ to guess whether we can use stdarg, prototypes, and const. 31 /* Use __STDC__ to guess whether we can use stdarg, prototypes, and const.
30 * This is a public header file, so autoconf can't help us here. */ 32 * This is a public header file, so autoconf can't help us here. */
31 #ifdef __STDC__ 33 #ifdef __STDC__
33 # define ZP(x) x 35 # define ZP(x) x
34 # define ZCONST const 36 # define ZCONST const
35 #else 37 #else
36 # define ZP(x) () 38 # define ZP(x) ()
37 # define ZCONST 39 # define ZCONST
40 #endif
41
42 #ifdef WIN32
43 /* this really should be uint32_t */
44 /*typedef unsigned int in_addr_t;
45 struct in_addr
46 {
47 in_addr_t s_addr;
48 }; */
49 #include <winsock2.h>
38 #endif 50 #endif
39 51
40 /* Service names */ 52 /* Service names */
41 #define HM_SVCNAME "zephyr-hm" 53 #define HM_SVCNAME "zephyr-hm"
42 #define HM_SRV_SVCNAME "zephyr-hm-srv" 54 #define HM_SRV_SVCNAME "zephyr-hm-srv"
241 253
242 /* Successful function return */ 254 /* Successful function return */
243 #define ZERR_NONE 0 255 #define ZERR_NONE 0
244 256
245 /* Hostmanager wait time (in secs) */ 257 /* Hostmanager wait time (in secs) */
246 #define HM_TIMEOUT 10 258 #define HM_TIMEOUT 1
247 259
248 /* Server wait time (in secs) */ 260 /* Server wait time (in secs) */
249 #define SRV_TIMEOUT 30 261 #define SRV_TIMEOUT 30
250 262
251 #define ZAUTH (ZMakeAuthentication) 263 #define ZAUTH (ZMakeAuthentication)

mercurial