08-13-2004
7 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a parent that is passing data to child A and then child A has to process it and pass to child B. I am able to pass the data to child A but am not able to pass it to child B. Child B seems to only be receiving the last data instead of the whole data.
I saw one example in a book but it uses... (1 Reply)
Discussion started by: scmay
1 Replies
2. UNIX for Dummies Questions & Answers
hai,
i am doing my masters degree in computers.please any one tell me about
fork(),semaphores,mutex,messaging queues,messaging using pipes ,and msgget(),msgrecv() funtions
in ipc programming .
i have exam on that i have a book but in that they not given clearly.
hope u will
... (2 Replies)
Discussion started by: G.Vishnuvardhan
2 Replies
3. Shell Programming and Scripting
Can anyone tell me about the classification and significance of variuos unix shells and why is only sh used for most shell scripting? (3 Replies)
Discussion started by: gurujoe
3 Replies
4. Programming
Hello there,
My mulithreaded application (which is too large to represent the source code here) is crashing after installing FreeBSD 7.1-RELEASE/amd64.
It worked properly on others machines (Dual Cores with 4GB of RAM - FreeBSD 6.2-RELEASE/i386).
The current machine has 2x Core 2 Duo... (1 Reply)
Discussion started by: Seenquev
1 Replies
5. Solaris
I was asked to look into a problem with a Sun Netra 440 in another department. On the server in question, the relevant 'uname -a' information is, "SunOS host1 5.9 Generic_118558-16 sun4u sparc SUNW,Netra-440". That information aside, while the other admin is logged into the ALOM, these errors are... (0 Replies)
Discussion started by: Borealis
0 Replies
6. Programming
Hi!
I wanted to know the advantages / disadvantages of different IPC mechanims such as sockets, pipes (unnamed) , shared memory & message queues.
Pipes for example i hear are fast , but are difficult to debug as compared to sockets.
Can you guys please name some situations where one is... (4 Replies)
Discussion started by: _korg
4 Replies
7. UNIX for Dummies Questions & Answers
hey everyone,
I'm reading a tutorial on the Mach kernel principles, however, the port and port rights part are kind of confusing to me. I don't know if the book has typos or something but it seems a bit contradictory. It says that "ports, themselves, are not named. It is the port rights that are"... (10 Replies)
Discussion started by: neur0n
10 Replies
LEARN ABOUT REDHAT
ipc::msg
IPC::Msg(3pm) Perl Programmers Reference Guide IPC::Msg(3pm)
NAME
IPC::Msg - SysV Msg IPC object class
SYNOPSIS
use IPC::SysV qw(IPC_PRIVATE S_IRWXU);
use IPC::Msg;
$msg = new IPC::Msg(IPC_PRIVATE, S_IRWXU);
$msg->snd(pack("l! a*",$msgtype,$msg));
$msg->rcv($buf,256);
$ds = $msg->stat;
$msg->remove;
DESCRIPTION
A class providing an object based interface to SysV IPC message queues.
METHODS
new ( KEY , FLAGS )
Creates a new message queue associated with "KEY". A new queue is created if
o "KEY" is equal to "IPC_PRIVATE"
o "KEY" does not already have a message queue associated with it, and "FLAGS & IPC_CREAT" is true.
On creation of a new message queue "FLAGS" is used to set the permissions.
id Returns the system message queue identifier.
rcv ( BUF, LEN [, TYPE [, FLAGS ]] )
Read a message from the queue. Returns the type of the message read. See msgrcv. The BUF becomes tainted.
remove
Remove and destroy the message queue from the system.
set ( STAT )
set ( NAME => VALUE [, NAME => VALUE ...] )
"set" will set the following values of the "stat" structure associated with the message queue.
uid
gid
mode (oly the permission bits)
qbytes
"set" accepts either a stat object, as returned by the "stat" method, or a list of name-value pairs.
snd ( TYPE, MSG [, FLAGS ] )
Place a message on the queue with the data from "MSG" and with type "TYPE". See msgsnd.
stat
Returns an object of type "IPC::Msg::stat" which is a sub-class of "Class::Struct". It provides the following fields. For a description
of these fields see you system documentation.
uid
gid
cuid
cgid
mode
qnum
qbytes
lspid
lrpid
stime
rtime
ctime
SEE ALSO
IPC::SysV Class::Struct
AUTHOR
Graham Barr <gbarr@pobox.com>
COPYRIGHT
Copyright (c) 1997 Graham Barr. All rights reserved. This program is free software; you can redistribute it and/or modify it under the
same terms as Perl itself.
perl v5.8.0 2002-06-01 IPC::Msg(3pm)