First version of gip interface (gateway IPc).
[egate.git] / include / gip.h
1 /* Gateway kernel
2  * Europagate, 1995
3  *
4  * $Log: gip.h,v $
5  * Revision 1.1  1995/03/27 08:23:17  adam
6  * First version of gip interface (gateway IPc).
7  * First version of gw-db: gateway hash db.
8  *
9  */
10
11 typedef struct GIP_info {
12     int rfd;
13     int wfd;
14     char *name;
15     int ret;
16     int errno;
17 } *GIP;
18
19 GIP gip_initialize (const char *name);
20 int gip_destroy (GIP gip);
21 int gip_infileno (GIP gip);
22 int gip_errno (GIP gip);
23 int gip_read (GIP gip, char *buf, size_t count);
24 int gip_write (GIP gip, const char *buf, size_t count);
25 int gip_wline (GIP gip, const char *buf);
26
27 GIP gipc_initialize (const char *name);
28 int gipc_destroy (GIP gip);
29 int gipc_open (GIP gip, const char *server, int sync);
30 int gipc_close (GIP gip);
31
32 GIP gips_initialize (const char *name);
33 int gips_destroy (GIP gip);
34 int gips_open (GIP gip, const char *client);
35 int gips_close (GIP gip);
36