[comp.windows.x] MIT SHM extensions

simon@gmdtub (Simon Leinen) (02/09/91)

>>>>> On 30 Jan 91 15:48:13 GMT, mef@police.rutgers.edu (Marc E.
>>>>> Fiuczynski) said:

Marc> Can someone explain to me what the MIT SHM extensions are.  Just
Marc> point me to the proper man pages would be enough, but if you
Marc> have the time a little more info wouldn't hurt.

This question belongs in comp.windows.x.

MIT-SHM is an extension to the X window system protocol which is
handled by the default configuration of the sample server from MIT
(and probably other vendors' servers, too).  You can find out about
this by typing `xdpyinfo' to your X display:

	...
	number of extensions:    4
	    SHAPE
>>>	    MIT-SHM
	    Multi-Buffering
	    MIT-SUNDRY-NONSTANDARD
	...

The MIT-SHM extension provides a fast transfer method for pixmap data
for clients that run on the same machine as the server.  I don't know
about any programs that use it, but SHM should be beneficial for
animation programs or so.
-- 
Simon.

jcoco@hobbes.ctc.tasc.COM (Joe Coco xwindows) (02/11/91)

If my system has the SHM extension, how do I use it?
Is it automatically used or do I need to write Xlib
code to access it?

Thanks
jcoco@tasc.ctc.com

corbet@cyser.atd.ucar.edu (Jonathan Corbet) (02/12/91)

jcoco@hobbes.ctc.tasc.COM (Joe Coco xwindows):

>If my system has the SHM extension, how do I use it?
>Is it automatically used or do I need to write Xlib
>code to access it?

You need to write Xlib code.  I wrote a short document on the shared memory
extension a while back; it's available for anonymous FTP from 
stout.atd.ucar.edu (128.117.80.30) in pub/X-shared-memory.doc.

--
Jonathan Corbet
National Center for Atmospheric Research, Atmospheric Technology Division
corbet@stout.atd.ucar.edu