is this wise?
Clyde W. Hoover
clyde at ut-emx.UUCP
Fri May 5 00:17:42 AEST 1989
Deja-vu! In the old days when the ARPANET used NCP and the highest UNIX release
was V6, (anyone remember 'smalldaemon' and 'largedaemon'?) a
version of the UIUC networking code worked much like that.
To open a network connection, one did something like:
fd = open("/dev/net/sri-nic", 2, &mumble);
/*
* Host number was in the inode - either minor device # or in the
* direct block list - major device number was 'network'
*/
Which evolved to (still pre-TCP):
mumble.addr = host-number;
mumble.timeout = XXX;
mumble.slag = slag;
fd = open("/dev/network", 2, &mumble);
Which with the advent of TCP and multiple protocol suites evolved into the socket
idea currently in use.
Can you IMAGINE having EVERY hostname AND alias AND IP-number out there in your
/dev? Or modifying namei to recognize "/dev/network" and not actually require
all those files to exist? Ugh. As troublesome as setting up sockets can be,
they are so much better than anything that came before (I know, I've messed with
much of what came before).
Commonly available convience routines would be nice, however.
Take 20 minutes and write some. Take 2 hours and document them.
-Clyde Hoover
Shouter-To-Dead-Parrots @ Univ. of Texas Computation Center; Austin, Texas
clyde at emx.utexas.edu; ...!cs.utexas.edu!ut-emx!clyde
Tip #268: Don't feel insecure or inferior! Remember, you're ORGANIC!!
You could win an argument with almost any rock!
More information about the Comp.unix.wizards
mailing list