blob: 58cbeb78284ab194e12c009d85a301341399b347 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
/*
* IvyDaemon, an Ivy gateway for short-lived agents
*
* Copyright (C) 1999
* Centre d'Études de la Navigation Aérienne
*
* Header shared by server, superserver and clients
*
* Author(s): Stephane Chatty <chatty@cenatoulouse.dgac.fr>
* from code by Patrick Amar <pa@lri.fr>
*
* $Id$
*
* Please refer to file version.h for the
* copyright notice regarding this software
*
*/
/* exchanges with super-server (port registration) */
#ifndef DEFAULT_INIVYD_PORT
#define DEFAULT_INIVYD_PORT 3006
#endif
#define MSG_REPLY ((char) 0)
#define MSG_CLIENT ((char) 1)
#define MSG_SERVER ((char) 2)
struct connmsg {
short msg_key;
short msg_port; /* le port a utiliser pour l'uid ci-dessus */
char msg_type; /* type de messages */
char msg_fill1, /* fillers */
msg_fill2,
msg_fill3;
};
/* exchanges between clients and server */
#define BUFSIZE 512
typedef struct {
char buffer [BUFSIZE];
} request;
typedef struct {
int ok;
} answer;
/*
* L'adresse de la machine locale
*/
#ifndef LOCALHOST
#ifdef INADDR_LOOPBACK
#define LOCALHOST htonl (INADDR_LOOPBACK)
#else
#define LOCALHOST htonl (0x7f000001)
#endif
#endif
|