Query: xaddhosts
OS: hpux
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
XAddHosts() XAddHosts() Name XAddHosts - add multiple hosts to the access control list. Synopsis XAddHosts(display, hosts, num_hosts) Display *display; XHostAddress *hosts; int num_hosts; Arguments display Specifies a connection to an X server; returned from XOpenDisplay(). hosts Specifies each host that is to be added. num_hosts Specifies the number of hosts that are to be added. Description XAddHosts() adds each specified host to the access control list for the server specified by display. The access control list is a primi- tive security feature that allows access to the server only by other machines listed in a file on the machine running the server. On UNIX systems, this file is /etc/X?.hosts, where ? is the number of the display. The application that calls XAddHosts() and the server whose list is being updated must be running on the same host machine. The address data must be a valid address for the type of network in which the server operates, as specified by the family member. Inter- net, DECnet and ChaosNet networks are currently supported. For TCP/IP, the address should be in network byte order. For the DECnet family, the server performs no automatic swapping on the address bytes. A Phase IV address is two bytes long. The first byte contains the least significant eight bits of the node number. The second byte contains the most significant two bits of the node number in the least significant two bits of the byte, and the area in the most sig- nificant six bits of the byte. For more information on access control, see Volume One, Chapter 15, Other Programming Techniques. Structures typedef struct { int family; /* for example Family Internet */ int length; /* length of address, in bytes */ char *address; /* pointer to where to find the bytes */ } XHostAddress; /* The following constants for family member */ #define FamilyInternet 0 #define FamilyDECnet 1 #define FamilyChaos 2 Errors BadAccess BadValue See Also XAddHost(), XDisableAccessControl(), XEnableAccessControl(), XListHosts(), XRemoveHost(), XRemoveHosts(), XSetAccessControl(). Xlib - Host Access XAddHosts()
Related Man Pages |
---|
xaddhosts(3x11) - redhat |
xaddhost(3) - hpux |
xremovehosb(3) - hpux |
xdisableaccesscontrol(3x11) - osf1 |
xsetaccesscontrol(3x11) - osf1 |
Similar Topics in the Unix Linux Community |
---|
TCP/IP name resolution |
How to find i.p address of our server |
/etc/hosts |
etc/hosts |
etc/hosts or something else?? |