12.07.2015 Views

Xlib − C Language X Interface

Xlib − C Language X Interface

Xlib − C Language X Interface

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Xlib</strong> − C LibraryX11, Release 6.7 DRAFTXRemoveHost (display, host)Display *display;XHostAddress *host;displayhostSpecifies the connection to the X server.Specifies the host that is to be removed.The XRemoveHost function removes the specified host from the access control list for that display.The server must be on the same host as the client process, or a BadAccess error results. Ifyou remove your machine from the access list, you can no longer connect to that server, and thisoperation cannot be reversed unless you reset the server.XRemoveHost can generate BadAccess and BadValue errors.To remove multiple hosts at one time, use XRemoveHosts.XRemoveHosts (display, hosts, num_hosts)Display *display;XHostAddress *hosts;int num_hosts;displayhostsnum_hostsSpecifies the connection to the X server.Specifies each host that is to be removed.Specifies the number of hosts.The XRemoveHosts function removes each specified host from the access control list for thatdisplay. The X server must be on the same host as the client process, or a BadAccess errorresults. If you remove your machine from the access list, you can no longer connect to thatserver, and this operation cannot be reversed unless you reset the server.XRemoveHosts can generate BadAccess and BadValue errors.9.8.2. Changing, Enabling, or Disabling Access Control<strong>Xlib</strong> provides functions that you can use to enable, disable, or change access control.For these functions to execute successfully, the client application must reside on the same host asthe X server and/or have been given permission in the initial authorization at connection setup.To change access control, use XSetAccessControl.XSetAccessControl (display, mode)Display *display;int mode;displaymodeSpecifies the connection to the X server.Specifies the mode. Youcan pass EnableAccess or DisableAccess.The XSetAccessControl function either enables or disables the use of the access control list ateach connection setup.195

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!