is this wise?

John F. Haugh II jfh at rpp386.Dallas.TX.US
Fri May 5 12:25:17 AEST 1989


In article <53756 at uunet.UU.NET> rick at uunet.UU.NET (Rick Adams) writes:
>> f = fopen("/dev/hosts/uunet.uu.net/tcp/79", "r+");
>> There. Isn't that much nicer than sockets?
>
>Why not:
>	f = tcp_open("uunet.uu.net", "finger", "r+w"):

Because you could point to that file with a symbolic link and
give it a more worthwhile name and have other programs have
other uses for it.

>That way the underlying structure doesn't matter. You can have
>sockets, tli, streams, your filesytem like layout.

But you have to have your mystery tcp_open() call.  What's
wrong with the open() call we have already?
-- 
John F. Haugh II                        +-Salad of the Week:-------------------
VoiceNet: (214) 250-3311   Data: -6272  | "Bring me a head of Romain lettuce"
InterNet: jfh at rpp386.Dallas.TX.US       | [ not said by ] -- Richard Sexton
UucpNet : <backbone>!killer!rpp386!jfh  +--------------------------------------



More information about the Comp.unix.wizards mailing list