{
    "mode": "info",
    "parameter": "IPC::Msg",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/info/IPC%3A%3AMsg/json",
    "generated": "2026-07-05T11:58:27Z",
    "synopsis": "use IPC::SysV qw(IPCPRIVATE SIRUSR SIWUSR);\nuse IPC::Msg;\n$msg = IPC::Msg->new(IPCPRIVATE, SIRUSR | SIWUSR);\n$msg->snd($msgtype, $msgdata);\n$msg->rcv($buf, 256);\n$ds = $msg->stat;\n$msg->remove;",
    "sections": {
        "NAME": {
            "content": "IPC::Msg - SysV Msg IPC object class\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use IPC::SysV qw(IPCPRIVATE SIRUSR SIWUSR);\nuse IPC::Msg;\n\n$msg = IPC::Msg->new(IPCPRIVATE, SIRUSR | SIWUSR);\n\n$msg->snd($msgtype, $msgdata);\n\n$msg->rcv($buf, 256);\n\n$ds = $msg->stat;\n\n$msg->remove;\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "A class providing an object based interface to SysV IPC message queues.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "new ( KEY , FLAGS )\nCreates a new message queue associated with \"KEY\". A new queue is\ncreated if\n\no   \"KEY\" is equal to \"IPCPRIVATE\"\n\no   \"KEY\" does not already have a message queue associated with it,\nand \"FLAGS & IPCCREAT\" is true.\n\nOn creation of a new message queue \"FLAGS\" is used to set the\npermissions.  Be careful not to set any flags that the Sys V IPC\nimplementation does not allow: in some systems setting execute bits\nmakes the operations fail.\n\nid  Returns the system message queue identifier.\n\nrcv ( BUF, LEN [, TYPE [, FLAGS ]] )\nRead a message from the queue. Returns the type of the message\nread.  See msgrcv(2).  The BUF becomes tainted.\n\nremove\nRemove and destroy the message queue from the system.\n\nset ( STAT )\nset ( NAME => VALUE [, NAME => VALUE ...] )\n\"set\" will set the following values of the \"stat\" structure\nassociated with the message queue.\n\nuid\ngid\nmode (oly the permission bits)\nqbytes\n\n\"set\" accepts either a stat object, as returned by the \"stat\"\nmethod, or a list of name-value pairs.\n\nsnd ( TYPE, MSG [, FLAGS ] )\nPlace a message on the queue with the data from \"MSG\" and with type\n\"TYPE\".  See msgsnd(2).\n\nstat\nReturns an object of type \"IPC::Msg::stat\" which is a sub-class of\n\"Class::Struct\". It provides the following fields. For a\ndescription of these fields see you system documentation.\n\nuid\ngid\ncuid\ncgid\nmode\nqnum\nqbytes\nlspid\nlrpid\nstime\nrtime\nctime\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "IPC::SysV, Class::Struct\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "Graham Barr <gbarr@pobox.com>, Marcus Holland-Moritz <mhx@cpan.org>\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Version 2.x, Copyright (C) 2007-2013, Marcus Holland-Moritz.\n\nVersion 1.x, Copyright (c) 1997, Graham Barr.\n\nThis program is free software; you can redistribute it and/or modify it\nunder the same terms as Perl itself.\n\nperl v5.34.0                      2026-06-23                   IPC::Msg(3perl)",
            "subsections": []
        }
    },
    "summary": "IPC::Msg - SysV Msg IPC object class",
    "flags": [],
    "examples": [],
    "see_also": []
}