static char sccsid
[] = "@(#)nettest.c 4.1 (Berkeley) %G%";
fire up two daemons with pipes in between them
currently, one is the "r" machine, the other the "v" machine
# define NETD "/usr/net/bin/netdaemon"
char b1
[20],b2
[20],b3
[20];
for(i
=0; i
< argc
; i
++)margv
[i
] = argv
[i
];
/* read pip1[0], write pip2[1] */
close(pip1
[1]); close(pip2
[0]);
sprintf(b1
,"-r%d",pip1
[0]);
sprintf(b2
,"-w%d",pip2
[1]);
/* read pip2[0], write pip1[1] */
close(pip2
[1]); close(pip1
[0]);
sprintf(b1
,"-r%d",pip2
[0]);
sprintf(b2
,"-w%d",pip1
[1]);