5 * Revision 1.5 1995/04/21 16:38:07 adam
6 * Added more debugging logs.
8 * Revision 1.4 1995/04/20 15:12:45 adam
11 * Revision 1.3 1995/04/19 16:02:06 adam
12 * Some hacks to get the FIFO communication work!! Isn't reliable.
14 * Revision 1.2 1995/03/28 08:03:46 adam
15 * Non-blocking open used when sync is set.
17 * Revision 1.1 1995/03/27 08:24:59 adam
18 * New module gip: Gateway IPc module.
19 * New module gw-db: Gateway hash-db module (user information table).
33 GIP gipc_initialize (const char *name)
35 return gip_initialize (name);
38 int gipc_destroy (GIP gip)
40 return gip_destroy (gip);
43 int gipc_open (GIP gip, const char *server, int sync)
47 gw_log (GW_LOG_DEBUG, "gipc", "Open writeonly of %s", server);
48 gip->wfd = open (server, O_WRONLY);
49 gw_log (GW_LOG_DEBUG, "gipc", "Open readonly of %s", gip->name);
50 gip->rfd = open (gip->name, O_RDONLY);
54 gip->rfd = open (gip->name, O_RDONLY|O_NONBLOCK);
55 gip->wfd = open (server, O_WRONLY|O_NONBLOCK);
59 gw_log (GW_LOG_DEBUG, "gipc", "Cannot open %s", gip->name);
64 gw_log (GW_LOG_DEBUG, "gipc", "Cannot open %s", server);
67 fcntl (gip->wfd, F_SETFL, 0);
68 fcntl (gip->rfd, F_SETFL, 0);
72 int gipc_close (GIP gip)