⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xaddhosts.html

📁 linux图形界面x liberary手册
💻 HTML
字号:
<HTML><HEAD><TITLE>Xlib Programming Manual: XAddHosts</TITLE></HEAD><BODY><H1 ALIGN=center>XAddHosts</H1><H2>Syntax</H2><!.IN "XAddHosts" "" "@DEF@"><CODE><PRE>XAddHosts(<B>display</B>, <B>hosts</B>, <B>num_hosts</B>)      <A HREF="../../display/opening.html#Display">Display</A> *<B>display</B>;      <A HREF="hosts.html">XHostAddress</A> *<B>hosts</B>;      int <B>num_hosts</B>;</PRE></CODE><H2>Arguments</H2><TABLE><TR><TD> <B>display</B><TD> Specifies the connection to the X server.<TR><TD> <B>hosts</B><TD> Specifies each host that is to be added.<TR><TD> <B>num_hosts</B><TD> Specifies the number of hosts.</TABLE><H2>Description</H2>The<B>XAddHosts()</B>function adds each specified host to the access control list for that display.The server must be on the same host as the client issuing the command, or a<B>BadAccess</B>error results.<P><B>XAddHosts()</B>can generate<B>BadAccess</B>and<B>BadValue</B> errors.<H2>Diagnostics</H2><TABLE><TR><TD><B>BadAccess</B><TD> A client attempted to free a color map entry thatit did not already allocate.<TR><TD><B>BadAccess</B><TD> A client attempted to store into a read-only color     map entry.<TR><TD><B>BadValue</B><TD> Some numeric value falls outside the range of values accepted by the request.     Unless a specific range is specified for an argument, the full range defined     by the argument's type is accepted.  Any argument defined as a set of     alternatives can generate this error.</TABLE><H2>See also</H2><B><A HREF="XAddHost.html">XAddHost()</A></B>,<B><A HREF="XDisableAccessControl.html">XDisableAccessControl()</A></B>,<B><A HREF="XEnableAccessControl.html">XEnableAccessControl()</A></B>,<B><A HREF="../../display/XFree.html">XFree()</A></B><B><A HREF="XListHosts.html">XListHosts()</A></B>,<B><A HREF="XRemoveHost.html">XRemoveHost()</A></B>,<B><A HREF="XRemoveHosts.html">XRemoveHosts()</A></B>,<B><A HREF="XSetAccessControl.html">XSetAccessControl()</A></B>,"<A HREF="hosts.html">Adding, Getting, or Removing Hosts</A>"<HR><ADDRESS><A HREF="http://tronche.com/">Christophe Tronche</A>, <A HREF="mailto:ch.tronche@computer.org">ch.tronche@computer.org</A></ADDRESS></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -