>> Dear All,
>> I am having difficulty coming to grips with Streams and require one or
>> Firstly I want to create a stream between two processes. I have tried
>> in Stevens : "UNIX Network Programming" BUT :
>> a) it doesn't compile : because the book makes use of the /dev/spx
>> b) when I take a wild guess and replace this with /dev/sad it does
>> but chokes on the readmsg command.
>> So what I would like to know is :
>> a) am I using the correct driver?
>> b) if I am, then why can I not get readmsg to return
>> c) can anyone recommend a good starting point for streams programming
>> HP-UX, since Stevens in this respect appears to be a non-starter.
>> Secondly, I am only doing this all so that I can get notification of
>> asynchronous input when one process writes to the other, via a SIGPOLL
>> signal, is this all in vain? Having munched my way though Fifos and
>> am running out of IPC constructs which support this feature.
>> with my thanks,
>> Dominic Varley
>> Space Division
>> Logica UK Ltd
>Hi Dominic, couldn't you use the FIOASYNC ioctl and friends in
>/usr/include/sys/ioctl.h if it's sockets you want to use?
>For STREAMS the I_SETSIG ioctl is the one to use. The only manual I know
>of is the STREAMS/UX for System 9000 Reference Manual or something like
>that. I wouldn't have said it was all that good though.
>Also for STREAMS the getmsg and putmsg functions are recommended.
>Another thing is that there's not really a great deal of reason to use
>the STREAMS package as supplied because as far as I remember it doesn't
>come with much in the way of useful modules or drivers (this is for 9.x.
>Perhaps it's a lot better on 10.x). The only really useful things that
>STREAMS gives you (unless you intend to write your own modules or
>drivers) is promiscuous mode on ethernet and access to token-ring (and
>FDDI I guess).
>David Peter | A repo man is always intense.
>Insignia Solutions plc | But only a fool gets killed
>Voice: +44 (0)1494 453351 | http://www.insignia.com
thanks for your thoughts, I am already planning to use the asynchronous
signalling facilities for my sockets. However, I am implementing this under
X/Open sockets which is fine across hosts. However, within a single host,
if I have read the manuals correctly, X/Open doesn't support UNIX domain
sockets, or an equivalent thereof. Not wishing to invoke a whole TCP
communication session within a single host I have been looking at
alternatives; Fifo, Pipes and finally Streams. Experiments have shown that
asynchronous signalling doesn't work for the first two, and my "last, best
hope" - streams - doesn't even get off of the ground.
I basically want to do a mknod, a signal, and an interupt handler which does
the readmsg for me. But I can't get the mknod, readmsg up and running.
Logica UK Ltd