Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 05cd670d8a02b2b4a0ffb1756f2e8308 > files > 7896

php-manual-zh-5.2.4-1mdv2008.1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>msg_stat_queue</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="PHP 手册"
HREF="index.html"><LINK
REL="UP"
TITLE="Semaphore, Shared Memory and IPC Functions"
HREF="ref.sem.html"><LINK
REL="PREVIOUS"
TITLE="msg_set_queue"
HREF="function.msg-set-queue.html"><LINK
REL="NEXT"
TITLE="sem_acquire"
HREF="function.sem-acquire.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=UTF-8"></HEAD
><BODY
CLASS="refentry"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>PHP 手册</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.msg-set-queue.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.sem-acquire.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.msg-stat-queue"
></A
>msg_stat_queue</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN205712"
></A
><P
>    (PHP 4 &#62;= 4.3.0, PHP 5)</P
>msg_stat_queue&nbsp;--&nbsp;
     Returns information from the message queue data structure
    </DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN205715"
></A
><H2
>Description</H2
>array <B
CLASS="methodname"
>msg_stat_queue</B
> ( resource queue )<BR
></BR
><P
>&#13;     <B
CLASS="function"
>msg_stat_queue()</B
> returns the message queue meta data
     for the message queue specified by the <CODE
CLASS="parameter"
>queue</CODE
>.
     This is useful, for example, to determine which process sent the message
     that was just received.
    </P
><P
>&#13;     The return value is an array whose keys and values have the following
     meanings:
     <DIV
CLASS="table"
><A
NAME="AEN205727"
></A
><P
><B
>表 1. Array structure for msg_stat_queue</B
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><COL><COL><TBODY
><TR
><TD
><TT
CLASS="literal"
>msg_perm.uid</TT
></TD
><TD
>&#13;          The uid of the owner of the queue.
         </TD
></TR
><TR
><TD
><TT
CLASS="literal"
>msg_perm.gid</TT
></TD
><TD
>&#13;          The gid of the owner of the queue.
         </TD
></TR
><TR
><TD
><TT
CLASS="literal"
>msg_perm.mode</TT
></TD
><TD
>&#13;          The file access mode of the queue.
         </TD
></TR
><TR
><TD
><TT
CLASS="literal"
>msg_stime</TT
></TD
><TD
>&#13;          The time that the last message was sent to the queue.
         </TD
></TR
><TR
><TD
><TT
CLASS="literal"
>msg_rtime</TT
></TD
><TD
>&#13;          The time that the last message was received from the queue.
         </TD
></TR
><TR
><TD
><TT
CLASS="literal"
>msg_ctime</TT
></TD
><TD
>&#13;          The time that the queue was last changed.
         </TD
></TR
><TR
><TD
><TT
CLASS="literal"
>msg_qnum</TT
></TD
><TD
>&#13;          The number of messages waiting to be read from the queue.
         </TD
></TR
><TR
><TD
><TT
CLASS="literal"
>msg_qbytes</TT
></TD
><TD
>&#13;          The number of bytes of space currently available in the queue to
          hold sent messages until they are received.
         </TD
></TR
><TR
><TD
><TT
CLASS="literal"
>msg_lspid</TT
></TD
><TD
>&#13;          The pid of the process that sent the last message to the queue.
         </TD
></TR
><TR
><TD
><TT
CLASS="literal"
>msg_lrpid</TT
></TD
><TD
>&#13;          The pid of the process that received the last message from the queue.
         </TD
></TR
></TBODY
></TABLE
></DIV
>
    </P
><P
>&#13;     See also <A
HREF="function.msg-remove-queue.html"
><B
CLASS="function"
>msg_remove_queue()</B
></A
>,
     <A
HREF="function.msg-receive.html"
><B
CLASS="function"
>msg_receive()</B
></A
>,
     <A
HREF="function.msg-get-queue.html"
><B
CLASS="function"
>msg_get_queue()</B
></A
> and
     <A
HREF="function.msg-set-queue.html"
><B
CLASS="function"
>msg_set_queue()</B
></A
>.
    </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="function.msg-set-queue.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>起始页</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.sem-acquire.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>msg_set_queue</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.sem.html"
ACCESSKEY="U"
>上一级</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>sem_acquire</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>