Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!husc6!mit-eddie!ll-xn!ames!ptsfa!rtech!llama!daveb
From: daveb@llama.rtech.UUCP (Dave Brower)
Newsgroups: comp.sys.hp
Subject: Re: BSD Sockets...
Message-ID: <1465@rtech.UUCP>
Date: Mon, 7-Dec-87 23:38:09 EST
Article-I.D.: rtech.1465
Posted: Mon Dec  7 23:38:09 1987
Date-Received: Sun, 13-Dec-87 11:15:56 EST
References: <772@louie.udel.EDU> <1157@hplabsz.HPL.HP.COM>
Sender: news@rtech.UUCP
Reply-To: daveb@rtech.UUCP (Dave Brower)
Distribution: na
Organization: Relational Technology, Inc. Alameda, CA
Lines: 26
Summary: AF_INET vs AF_UNIX vs...

In article <1157@hplabsz.HPL.HP.COM> jin@hplabsz.UUCP (Tai Jin) writes:
>In article <772@louie.udel.EDU> garrett@udel.EDU (Joel Garrett) writes:
>>The code that I am trying to port makes use of a full duplex socket stream
>>According the HP-UX docs, the only socket support we have is for internet-
>>style sockets, whereas we need to have a socket which supports the AF_UNIX
>>type (used for stuff like pipes and interprocess communications according
>>to the BSD docs).  Am I at a dead end without having to generate a lot of
>>new code (ie re-write the bugger) or is there anything that will give me
>>the equivalent of this?
>
>We don't currently have AF_UNIX sockets, but is it really that much code
>to convert it to AF_INET sockets?  The only change would be to the initial
>connection code.
>
> ...tai

INET domain sockets are typically much slower than UNIX domain sockets.
UNIX domain sockets are not generally available on hybrid systems, and
are reputed to be buggy as heck in the best case.  On System V, unless
you are addicted to socket semantics, you can use FIFO's pretty easily. 
Don't know if you can select() on a FIFO on HPUX though...

-dB

"I don't care what you say, as long as you spell my name right."
{amdahl, cbosgd, mtxinu, ptsfa, sun}!rtech!daveb daveb@rtech.uucp