diff options
author | chatty | 1999-02-15 09:17:36 +0000 |
---|---|---|
committer | chatty | 1999-02-15 09:17:36 +0000 |
commit | f2203b40cf372462e5277b1b530561e929636ee1 (patch) | |
tree | 3a4ce7fc284972c0967113ba7444ff44c75775c6 /src/ivyd.h | |
parent | 23abb4b87c7e40ed259dd02f653516f60e55ade4 (diff) | |
download | ivyd-f2203b40cf372462e5277b1b530561e929636ee1.zip ivyd-f2203b40cf372462e5277b1b530561e929636ee1.tar.gz ivyd-f2203b40cf372462e5277b1b530561e929636ee1.tar.bz2 ivyd-f2203b40cf372462e5277b1b530561e929636ee1.tar.xz |
Initial revision
Diffstat (limited to 'src/ivyd.h')
-rw-r--r-- | src/ivyd.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/src/ivyd.h b/src/ivyd.h new file mode 100644 index 0000000..39f2691 --- /dev/null +++ b/src/ivyd.h @@ -0,0 +1,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_uid; /* identification de l'expediteur */ + 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 + |