* oops
[citadel.git] / citadel / ignet.c
1 /*
2  * $Id$
3  *
4  */
5
6 #include "sysdep.h"
7 #include <stdlib.h>
8 #include <unistd.h>
9 #include <stdio.h>
10 #include <fcntl.h>
11 #include <ctype.h>
12 #include <signal.h>
13 #include <pwd.h>
14 #include <errno.h>
15 #include <sys/types.h>
16 #include <sys/time.h>
17 #include <sys/wait.h>
18 #include <string.h>
19 #include <limits.h>
20 #include "citadel.h"
21 #include "server.h"
22 #include <time.h>
23 #include "sysdep_decls.h"
24 #include "citserver.h"
25 #include "support.h"
26 #include "config.h"
27 #include "tools.h"
28 #include "msgbase.h"
29 #include "internet_addressing.h"
30 #include "ignet.h"
31 #include "user_ops.h"
32 #include "room_ops.h"
33 #include "parsedate.h"
34
35
36
37 /*
38  * Returns nonzero if the specified nodename is on the Citadel network
39  */
40
41 int is_ignet(char *node) {
42         char filename[256];
43
44         /* First, check to see if the specified node is a neighbor */
45         sprintf(filename, "./network/systems/%s", node);
46         if (!access(filename, F_OK)) return(1);
47
48         /* If not, see if it's a non-neighbor node */
49         /* FIXME add this */
50
51         /* Nope */
52         return 0;
53
54 }
55
56
57 int ignet_spool_to(char *node, long msgnum) {
58
59         return 1;               /* FIXME */
60
61 }
62
63
64
65
66