XListHosts

Syntax

XHostAddress *XListHosts(display, nhosts_return, state_return)
      Display *display;
      int *nhosts_return;
      Bool *state_return;

Arguments

display Specifies the connection to the X server.
nhosts_return Returns the number of hosts currently in the access control list.
state_return Returns the state of the access control.

Description

The XListHosts() function returns the current access control list as well as whether the use of the list at connection setup was enabled or disabled. XListHosts() allows a program to find out what machines can make connections. It also returns a pointer to a list of host structures that were allocated by the function. When no longer needed, this memory should be freed by calling XFree().

See also

XAddHost(), XAddHosts(), XDisableAccessControl(), XEnableAccessControl(), XFree() XRemoveHost(), XRemoveHosts(), XSetAccessControl(), "Adding, Getting, or Removing Hosts"
Christophe Tronche, ch@tronche.com