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