#if defined(RCSIDENT) && defined (MAINLINE) static char zznetid[] = "$Header: net.h,v 1.7.0.1 86/01/17 21:15:45 notes Rel $"; #endif defined(RCSIDENT) && defined(MAINLINE) /* * This file describes the format of the net.how file in the * notesfile utility directory. The file is designed to * allow the reconfiguration of the network software to follow * non-uucp links. The format of a line in the file is: * * system:direction:protocol number::printf control string * * the direction field is contains an x or r, for transmit and * reply. The transmit field is used for sending notes to the * remote site. The reply lines are used for tickling the * remote system into sending notes back. * The third and fourth fields are reserved for future expansion. * The printf control string contains 2 %s arguements. * The first one is the name of the notesfile being sent, * the second is for the local system name. * The receive string is similar. * * The default control string is: * "uux -r -n - tosite!nfrcv %s %s" * for transmission, and for replies it is: * "uux -z farsite!nfxmit %s -d%s" * * In the default case, the tosite/farsite names are filled in. * * the "-r" flag to uux means don't try to start a uucico. * * A sample of our file: * * uicsovax:x:::uux - uicsovax\!/mnt/dcs/essick/.commands/nfrcv %s %s * uicsovax:r:::uux uicsovax\!/mnt/dcs/essick/.commands/nfxmit %s -d%s * * Ray Essick Aprli 23, 1982 */ #define NFXMIT "nfxmit" /* path to nf xmit */ #define NFRCV "nfrcv" /* path to receiver */ #define DFLTXMIT "uux -r -n - %s\!%s %s %s < %s" /* default xmit */ #define DFLTRPLY "uux -n %s\!%s %s -d%s" /* default reply */ #define NETHOW "net.how" /* file containing net links */ #define ALIASES "net.aliases" /* alias directory */ struct nethow_f /* net.how entries */ { char *nh_system; /* destination */ char *nh_nf; /* nf good for */ int nh_proto; /* protocol */ char *nh_xmit; /* xmit command line */ char *nh_rcv; /* reply command */ }; /* * bits in "sendhim" parameter to nfsend(). */ #define SENDNEWS 001 /* stuff from news */ #define SENDHIS 002 /* stuff he's seen */