MSG_GET_QUEUE(3) 1 MSG_GET_QUEUE(3)msg_get_queue - Create or attach to a message queueSYNOPSIS
resource msg_get_queue (int $key, [int $perms = 0666])
DESCRIPTION msg_get_queue(3) returns an id that can be used to access the System V message queue with the given $key. The first call creates the mes-
sage queue with the optional $perms. A second call to msg_get_queue(3) for the same $key will return a different message queue identifier,
but both identifiers access the same underlying message queue.
PARAMETERS
o $key
- Message queue numeric ID
o $perms
- Queue permissions. Default to 0666. If the message queue already exists, the $perms will be ignored.
RETURN VALUES
Returns a resource handle that can be used to access the System V message queue.
SEE ALSO msg_remove_queue(3), msg_receive(3), msg_send(3), msg_stat_queue(3), msg_set_queue(3).
PHP Documentation Group MSG_GET_QUEUE(3)
Check Out this Related Man Page
MSG_SET_QUEUE(3) 1 MSG_SET_QUEUE(3)msg_set_queue - Set information in the message queue data structureSYNOPSIS
bool msg_set_queue (resource $queue, array $data)
DESCRIPTION msg_set_queue(3) allows you to change the values of the msg_perm.uid, msg_perm.gid, msg_perm.mode and msg_qbytes fields of the underlying
message queue data structure.
Changing the data structure will require that PHP be running as the same user that created the queue, owns the queue (as determined by the
existing msg_perm.xxx fields), or be running with root privileges. root privileges are required to raise the msg_qbytes values above the
system defined limit.
PARAMETERS
o $queue
- Message queue resource handle
o $data
- You specify the values you require by setting the value of the keys that you require in the $data array.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
SEE ALSO msg_remove_queue(3), msg_receive(3), msg_stat_queue(3), msg_get_queue(3).
PHP Documentation Group MSG_SET_QUEUE(3)
i have been in trouble please help me out
i have developed a message queue.it is a simple message queue program
after running it give error like NO SPACE LEFT ON DEVICE
what is this error
how could i solve this problem i am working on solaris9.2 (2 Replies)
hi all...
ive been trying this program where i spawn 4 threads... and i am trying to use message queue to send msgs from 3 of the threads to the parent thread... but it doent seem to be working... ive almost pulled out my hair tryin to fix the prob :confused:
another wierd thing... (1 Reply)
Hello,
i need to write a message queue "chat server", that should work only localy.
Can anyone please help me with some ideas and peshaps code. I'm studying the UNIX IPC mechanisms right now. So far, i understand how it works but i still cannot get an idea how to write a chat programm...
... (2 Replies)
hello ,
I have to write an application in which I had to implement both Socket Comminication and IPC- message queues.
and that process should run in Infinite loop as well I had to continously check and send data through both type of communications...
What should I use to implement it...
I had... (34 Replies)
perms=`ls -l "$1" | cut -f1`
perms=${perms#?}
for role in user group other; do
what=none
case $perms in
r??*) what=read;;
esac
case $perms in
?w?*) what="$what"${what:+", "}"write";;
esac
case $perms in
??x*) what="$what"${what:+", "}"execute";;
esac
echo... (1 Reply)
Such as how to display these:
number of message queue IDs : 4,096
bytes per message : 8,192
bytes per message queue : 65,536
messages per message queue : 8,192 (4 Replies)
Hello !!!!! I have a simple question but i can't find the answer anywhere hope to meet it here.
Why it is a bad idea to pass pointers through message queues ?
Most structs i see all of their char types are arrays... Is it becase having pointers means we could possibily send wrong bytes ?
For... (2 Replies)
Hi everybody,
this is the situation. there is a programm XYZ which opens a message queue with the key 47110815 and waits for a SIGUSR1. After receiving this signal it sends a message with type 100 and a number (as ASCII) in the message-body.
I have to write a prog which frist sends the... (1 Reply)
Hi guys.
i have wrote a simple program to test message queue attributes. here it is:
#include <stdio.h>
#include <stdlib.h>
#include <mqueue.h>
#include <fcntl.h>
#include <string.h>
#include <errno.h>
#include <sys/stat.h>
int main()
{
struct mq_attr attr;
mqd_t mqd;
... (2 Replies)
Hi, I am trying to send/receive data by message queue and expecting it to be blocked on send/read for other side (at least this is my understooding ) , I am connecting message between perl<->C , perl is working as expected , but in C msgsnd and msgrcv are not waiting (blocked) untill second side... (6 Replies)
Hi,
I'm trying to use find in kshell (AIX) to find all files with perms of
write for other
AND
any execute bit set.
e.g:
r--r-x-w- would qualify
and rw-rw--wx would qualify
but ---rwxr-xr-x wouldn't qualify
So far, I've been trying something like this:
find . -type f -perm... (4 Replies)