5 * Revision 1.3 1995/04/19 16:02:06 adam
6 * Some hacks to get the FIFO communication work!! Isn't reliable.
8 * Revision 1.2 1995/03/28 08:03:46 adam
9 * Non-blocking open used when sync is set.
11 * Revision 1.1 1995/03/27 08:24:59 adam
12 * New module gip: Gateway IPc module.
13 * New module gw-db: Gateway hash-db module (user information table).
27 GIP gipc_initialize (const char *name)
29 return gip_initialize (name);
32 int gipc_destroy (GIP gip)
34 return gip_destroy (gip);
37 int gipc_open (GIP gip, const char *server, int sync)
41 gw_log (GW_LOG_DEBUG, "gipc", "Open readonly of %s", gip->name);
42 gip->rfd = open (gip->name, O_RDONLY);
43 gw_log (GW_LOG_DEBUG, "gipc", "Open writeonly of %s", server);
44 gip->wfd = open (server, O_WRONLY);
48 gip->wfd = open (server, O_WRONLY|O_NONBLOCK);
49 gip->rfd = open (gip->name, O_RDONLY|O_NONBLOCK);
55 fcntl (gip->wfd, F_SETFL, 0);
56 fcntl (gip->rfd, F_SETFL, 0);
60 int gipc_close (GIP gip)