# 2.11BSD#431 - /usr/src/new/notes/src/net.h

##### Macros

    ALIASES           X
    DFLTRPLY          X
    DFLTXMIT          X
    NETHOW            X
    NFRCV             X
    NFXMIT            X
    SENDHIS           X
    SENDNEWS          X

##### struct's

    nethow_f          X

       1: #if defined(RCSIDENT) && defined (MAINLINE)
       2: static char zznetid[] = "$Header: net.h,v 1.7.0.1 86/01/17 21:15:45 notes Rel $";
       3: #endif	defined(RCSIDENT) && defined(MAINLINE)
       4:
       5: /*
       6:  *	This file describes the format of the net.how file in the
       7:  *	notesfile utility directory. The file is designed to
       8:  *	allow the reconfiguration of the network software to follow
       9:  *	non-uucp links. The format of a line in the file is:
      10:  *
      11:  *	system:direction:protocol number::printf control string
      12:  *
      13:  *	the direction field is contains an x or r, for transmit and
      14:  *	reply. The transmit field is used for sending notes to the
      15:  *	remote site. The reply lines are used for tickling the
      16:  *	remote system into sending notes back.
      17:  *	The third and fourth fields are reserved for future expansion.
      18:  *	The printf control string contains 2 %s arguements.
      19:  *	The first one is the name of the notesfile being sent,
      20:  *	the second is for the local system name.
      21:  *	The receive string is similar.
      22:  *
      23:  *	The default control string is:
      24:  *		"uux -r -n - tosite!nfrcv %s %s"
      25:  *	for transmission, and for replies it is:
      26:  *		"uux  -z farsite!nfxmit %s -d%s"
      27:  *
      28:  *	In the default case, the tosite/farsite names are filled in.
      29:  *
      30:  *	the "-r" flag to uux means don't try to start a uucico.
      31:  *
      32:  *	A sample of our file:
      33:  *
      34:  *	uicsovax:x:::uux - uicsovax\!/mnt/dcs/essick/.commands/nfrcv %s %s
      35:  *	uicsovax:r:::uux uicsovax\!/mnt/dcs/essick/.commands/nfxmit %s -d%s
      36:  *
      37:  *	Ray Essick	Aprli 23, 1982
      38:  */
      39:
      40: #define NFXMIT "nfxmit"                 /* path to nf xmit */
      41: #define NFRCV   "nfrcv"                 /* path to receiver */
      42:
      43: #define DFLTXMIT "uux -r -n - %s\!%s %s %s < %s"    /* default xmit */
      44: #define DFLTRPLY "uux -n %s\!%s %s -d%s"        /* default reply */
      45:
      46: #define NETHOW  "net.how"               /* file containing net links */
      47: #define ALIASES "net.aliases"               /* alias directory */
      48:
      49: struct nethow_f                     /* net.how entries */
      50: {
      51:     char   *nh_system;                  /* destination */
      52:     char   *nh_nf;                  /* nf good for */
      53:     int     nh_proto;                   /* protocol */
      54:     char   *nh_xmit;                    /* xmit command line */
      55:     char   *nh_rcv;                 /* reply command */
      56: };
      57:
      58: /*
      59:  *	bits in "sendhim" parameter to nfsend().
      60:  */
      61: #define SENDNEWS    001             /* stuff from news */
      62: #define SENDHIS     002             /* stuff he's seen */

#### Defined variables

zznetid defined in line 2; never used

#### Defined struct's

nethow_f defined in line 49; used 8 times

- in /usr/src/new/notes/src/getnet.c line 32(2), 45(2)
- in /usr/src/new/notes/src/newsoutput.c line 58(2)
- in /usr/src/new/notes/src/nfxmit.c line 36(2)

#### Defined macros

ALIASES defined in line 47; used 1 times

- in /usr/src/new/notes/src/nfalias.c line 39

DFLTRPLY defined in line 44; used 1 times

- in /usr/src/new/notes/src/nfxmit.c line 44

DFLTXMIT defined in line 43; used 1 times

- in /usr/src/new/notes/src/nfxmit.c line 64

NETHOW defined in line 46; used 1 times

- in /usr/src/new/notes/src/getnet.c line 52

NFRCV defined in line 41; used 1 times

- in /usr/src/new/notes/src/nfxmit.c line 65

NFXMIT defined in line 40; used 1 times

- in /usr/src/new/notes/src/nfxmit.c line 45

SENDHIS defined in line 62; used 5 times

- in /usr/src/new/notes/src/nfsend.c line 142-144(2), 168-170(2)
- in /usr/src/new/notes/src/nfxmit.c line 144

SENDNEWS defined in line 61; used 3 times

- in /usr/src/new/notes/src/nfsend.c line 148, 172
- in /usr/src/new/notes/src/nfxmit.c line 140

#### Usage of this include

net.h used 6 times

- in /usr/src/new/notes/src/getnet.c line 3
- in /usr/src/new/notes/src/newsoutput.c line 5
- in /usr/src/new/notes/src/nfalias.c line 8
- in /usr/src/new/notes/src/nfrcv.c line 20
- in /usr/src/new/notes/src/nfsend.c line 3
- in /usr/src/new/notes/src/nfxmit.c line 20

Last modified: 1988-03-29 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 496 |