GrReqShmCmds()

Name

GrReqShmCmds() -- Setup a shared memory interface

Synopsis

void GrReqShmCmds ( long shmsize );

Description

This function requests a shared memory area for the use of transferring command arguments between a nano-X client and nano-X server. Generally nano-X uses socket calls to transfer command arguments, but using shared memory can increase system performance. The use of shared memory or sockets is transparent to the application programmer aside from this function call.

Note

It is safe to call this function if shared emory support is not compiled into your nano-X library, because nano-X will transparently default to use the socket interface. Nano-X will also transparently roll over to using the socket interface if the shared memory allocation fails.

Parameters

TypeNameDescription
longshmsizeThe size in bytes of the shared memory buffer.