home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / softsys / andrew / 1379 < prev    next >
Encoding:
Text File  |  1992-11-17  |  1.9 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.234622.5623@adobe.com>
  6. Sender: usenet@adobe.com (USENET NEWS)
  7. Organization: Adobe Systems Incorporated
  8. References: <1992Nov17.163509.662@csi.uottawa.ca>
  9. Date: Tue, 17 Nov 1992 23:46:22 GMT
  10. Lines: 34
  11.  
  12. In article <1992Nov17.163509.662@csi.uottawa.ca>  
  13. isabelle@shamin.genie.uottawa.ca (Isabelle Tourneux) writes:
  14. > I would like to use message queues with ATK and ADEW.
  15. > - is it possible to use the usual msgrcv and msgsnd in an
  16. > infinite loop ? I have tried to put an infinite loop in the
  17. > "controller_go" of an Adew view-controller, but it disturbs the
  18. > usual functionnning of the controller.
  19. > - does an object-oriented function (a sort of "im_AddMessageQueue")
  20. > exist to set an input handler when something arrives on a
  21. > message queue, just as it does for sockets in im_AddFileHandler ?
  22. > In short, is there a way I can use message queues, or can I use 
  23. > only sockets to communicate with other processes ?
  24. > Thanks
  25. > Isabelle Tourneux
  26. > Multimedia Lab of the University of Ottawa,
  27. > isabelle@shamin.genie.uottawa.ca
  28. The namespace for System V message queues is disjoint from the file  
  29. descriptor namespace. They do not work with select and hence do not fit into  
  30. ATK interaction model. In short the SysV message and shared memory  
  31. interfaces are evil crud which never should have been implemented in a UNIX  
  32. kernel. Use the BSD send and recv calls instead. Or if you have SysVr4, you  
  33. might try putmsg and getmsg on streams but I'm not sure how that stuff  
  34. interacts with select. (And it undoubtedly depends on the particular version  
  35. of UNIX you are running.)
  36. --
  37. Zalman Stern           zalman@adobe.com            (415) 962 3824
  38. Adobe Systems, 1585 Charleston Rd., POB 7900, Mountain View, CA 94039-7900
  39.   "Yeah. Ask 'em if they'll upgrade my shifters too." Bill Watterson
  40.