12.07.2015 Views

Xlib − C Language X Interface

Xlib − C Language X Interface

Xlib − C Language X Interface

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Xlib</strong> − C LibraryX11, Release 6.7 DRAFTXAddHost (display, host)Display *display;XHostAddress *host;displayhostSpecifies the connection to the X server.Specifies the host that is to be added.The XAddHost function adds the specified host to the access control list for that display. Theserver must be on the same host as the client issuing the command, or a BadAccess error results.XAddHost can generate BadAccess and BadValue errors.To add multiple hosts at one time, use XAddHosts.XAddHosts (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 added.Specifies the number of hosts.The XAddHosts function adds each specified host to the access control list for that display. Theserver must be on the same host as the client issuing the command, or a BadAccess error results.XAddHosts can generate BadAccess and BadValue errors.To obtain a host list, use XListHosts.XHostAddress *XListHosts(display, nhosts_return, state_return)Display *display;int *nhosts_return;Bool *state_return;displaynhosts_returnstate_returnSpecifies the connection to the X server.Returns the number of hosts currently in the access control list.Returns the state of the access control.The XListHosts function returns the current access control list as well as whether the use of thelist at connection setup was enabled or disabled. XListHosts allows a program to find out whatmachines can make connections. It also returns a pointer to a list of host structures that were allocatedby the function. When no longer needed, this memory should be freed by calling XFree.To remove a single host, use XRemoveHost.194

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

Saved successfully!

Ooh no, something went wrong!