🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.soft-sys.andrew
1 messages
1 total messages Started by Zalman Stern Tue, 17 Nov 1992 23:47
Re: message queue with ATK
#1777
Author: Zalman Stern
Date: Tue, 17 Nov 1992 23:47
35 lines
2063 bytes
In article <1992Nov17.163509.662@csi.uottawa.ca>  
isabelle@shamin.genie.uottawa.ca (Isabelle Tourneux) writes:
> 
> I would like to use message queues with ATK and ADEW.
> 
> - is it possible to use the usual msgrcv and msgsnd in an
> infinite loop ? I have tried to put an infinite loop in the
> "controller_go" of an Adew view-controller, but it disturbs the
> usual functionnning of the controller.
> 
> - does an object-oriented function (a sort of "im_AddMessageQueue")
> exist to set an input handler when something arrives on a
> message queue, just as it does for sockets in im_AddFileHandler ?
> 
> In short, is there a way I can use message queues, or can I use 
> only sockets to communicate with other processes ?
> 
The namespace for System V message queues is disjoint from the file  
descriptor namespace. They do not work with select and hence do not fit into  
ATK interaction model. In short the SysV message and shared memory  
interfaces are evil crud which never should have been implemented in a UNIX  
kernel. Use the BSD send and recv calls instead. Or if you have SysVr4, you  
might try putmsg and getmsg on streams but I'm not sure how that stuff  
interacts with select. (And it undoubtedly depends on the particular version  
of UNIX you are running.)
--
Zalman Stern		   zalman@adobe.com		    (415) 962 3824
Adobe Systems, 1585 Charleston Rd., POB 7900, Mountain View, CA 94039-7900
  "Yeah. Ask 'em if they'll upgrade my shifters too." Bill Watterson


--
Zalman Stern		   zalman@adobe.com		    (415) 962 3824
Adobe Systems, 1585 Charleston Rd., POB 7900, Mountain View, CA 94039-7900
  "Yeah. Ask 'em if they'll upgrade my shifters too." Bill Watterson
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads