1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
/*
* $Id: serv_network.h 7344 2009-04-14 14:38:26Z ajc $
*/
typedef struct namelist namelist;
struct namelist {
namelist *next;
char name[SIZ];
};
typedef struct maplist maplist;
struct maplist {
struct maplist *next;
char remote_nodename[SIZ];
char remote_roomname[SIZ];
};
typedef struct SpoolControl SpoolControl;
struct SpoolControl {
long lastsent;
namelist *listrecps;
namelist *digestrecps;
namelist *participates;
maplist *ignet_push_shares;
char *misc;
FILE *digestfp;
int num_msgs_spooled;
};
typedef struct NetMap NetMap;
struct NetMap {
NetMap *next;
char nodename[SIZ];
time_t lastcontact;
char nexthop[SIZ];
};
typedef struct FilterList FilterList;
struct FilterList {
FilterList *next;
char fl_user[SIZ];
char fl_room[SIZ];
char fl_node[SIZ];
};
extern FilterList *filterlist;
void free_spoolcontrol_struct(SpoolControl **scc);
int writenfree_spoolcontrol_file(SpoolControl **scc, char *filename);
int read_spoolcontrol_file(SpoolControl **scc, char *filename);
int is_recipient(SpoolControl *sc, const char *Name);
void network_queue_room(struct ctdlroom *, void *);
void destroy_network_queue_room(void);
|