Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

NAME

XSetAccessControl − disable or enable access control. 

Synopsis

XSetAccessControl(display, mode)
Display *display;
int mode;

Arguments

displaySpecifies a connection to an X server; returned from XOpenDisplay(). 

modeSpecifies whether you want to enable or disable the access control.  Pass one of these constants:  EnableAccess or DisableAccess. 

Description

XSetAccessControl() specifies whether the server should check the host access list before allowing access to clients running on remote hosts.  If the constant used is DisableAccess, clients from any host have access unchallenged.  This routine can only be called from a client running on the same host as the server.  For more information on access control lists, see Volume One, Chapter 13, Other Programming Techniques. 

Errors

BadAccess
BadValue

See Also

XAddHost(), XAddHosts(), XDisableAccessControl(), XEnableAccessControl(), XListHosts(), XRemoveHost(), XRemoveHosts(). 

Copyright O’Reilly & Assoc.  —  

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026