home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / softsys / andrew / 1380 < prev    next >
Encoding:
Text File  |  1992-11-17  |  2.0 KB  |  46 lines

  1. Newsgroups: comp.soft-sys.andrew
  2. Path: sparky!uunet!gumby!wupost!decwrl!adobe!usenet
  3. From: zstern@adobe.com (Zalman Stern)
  4. Subject: Re: message queue with ATK
  5. Message-ID: <1992Nov17.234757.5695@adobe.com>
  6. Sender: usenet@adobe.com (USENET NEWS)
  7. Organization: Adobe Systems Incorporated
  8. Date: Tue, 17 Nov 1992 23:47:57 GMT
  9. Lines: 35
  10.  
  11. In article <1992Nov17.163509.662@csi.uottawa.ca>  
  12. isabelle@shamin.genie.uottawa.ca (Isabelle Tourneux) writes:
  13. > I would like to use message queues with ATK and ADEW.
  14. > - is it possible to use the usual msgrcv and msgsnd in an
  15. > infinite loop ? I have tried to put an infinite loop in the
  16. > "controller_go" of an Adew view-controller, but it disturbs the
  17. > usual functionnning of the controller.
  18. > - does an object-oriented function (a sort of "im_AddMessageQueue")
  19. > exist to set an input handler when something arrives on a
  20. > message queue, just as it does for sockets in im_AddFileHandler ?
  21. > In short, is there a way I can use message queues, or can I use 
  22. > only sockets to communicate with other processes ?
  23. The namespace for System V message queues is disjoint from the file  
  24. descriptor namespace. They do not work with select and hence do not fit into  
  25. ATK interaction model. In short the SysV message and shared memory  
  26. interfaces are evil crud which never should have been implemented in a UNIX  
  27. kernel. Use the BSD send and recv calls instead. Or if you have SysVr4, you  
  28. might try putmsg and getmsg on streams but I'm not sure how that stuff  
  29. interacts with select. (And it undoubtedly depends on the particular version  
  30. of UNIX you are running.)
  31. --
  32. Zalman Stern           zalman@adobe.com            (415) 962 3824
  33. Adobe Systems, 1585 Charleston Rd., POB 7900, Mountain View, CA 94039-7900
  34.   "Yeah. Ask 'em if they'll upgrade my shifters too." Bill Watterson
  35.  
  36.  
  37. --
  38. Zalman Stern           zalman@adobe.com            (415) 962 3824
  39. Adobe Systems, 1585 Charleston Rd., POB 7900, Mountain View, CA 94039-7900
  40.   "Yeah. Ask 'em if they'll upgrade my shifters too." Bill Watterson
  41.