msgsize(9F) Kernel Functions for Drivers msgsize(9F)NAME
msgsize - Return the total number of bytes in a message
SYNOPSIS
#include <sys/stream.h>
#include <sys/strsun.h>
size_t msgsize(mblk_t *mp);
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI)
PARAMETERS
mp Message to be evaluated.
DESCRIPTION
The msgsize() function counts the number of bytes in a message, regardless of the data type of the underlying data blocks.
RETURN VALUES
Number of bytes in the message.
CONTEXT
This function can be called from user, kernel or interrupt context.
SEE ALSO msgdsize(9F)
STREAMS Programming Guide
SunOS 5.11 9 June 2004 msgsize(9F)
Check Out this Related Man Page
mcopymsg(9F) Kernel Functions for Drivers mcopymsg(9F)NAME
mcopymsg - Copy message contents into a buffer and free message
SYNOPSIS
#include <sys/stream.h>
#include <sys/strsun.h>
void mcopymsg(mblk_t *mp, void *buf);
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI).
PARAMETERS
mp Message to be copied.
buf Buffer in which to copy.
DESCRIPTION
The mcopymsg() function copies the contents of the specified message into the specified buffer. If the message consists of more than a sin-
gle message block, the contents of each message block are placed consecutively into the buffer. After copying the message contents to buf,
mcopymsg() frees the message mp.
The provided buffer must be large enough to accommodate the message. If the buffer is not large enough, the results are unspecified. The
msgsize(9F) function can be used to calculate the total size of the message beforehand.
RETURN VALUES
None.
CONTEXT
This function can be called from user, kernel or interrupt context.
SEE ALSO freemsg(9F), msgsize(9F)
STREAMS Programming Guide
SunOS 5.11 16 Oct 2007 mcopymsg(9F)
Hi,
from the manual
listen(2): listen for connections on socket - Linux man page
It has a parameter called backlog and it limits the maximum length of queue of pending list.
If I set backlog to 128, is it means no more than 128 packets can be handled by server?
If I have three... (3 Replies)
Hi All,
First of all thanks for reading this post.
In my application, I am trying to create a new message queue . I am attaching the code below.
mqd_t mqopen2(const char * pName,
unsigned long Flags,
long maxMsg,
long msgSz)
{... (15 Replies)
Hi,
I have a UDP server and client program, and they must run within a program, so I decided two threads, one for UDP server and another for UDP client.
The simple architecture is shown in attachment.
However, I can't send the packets out on the UDP client, no any time message and... (2 Replies)
Hi,
I am a newbie to linux programming. I have implemented msgqueue in C.
msgrcv() call at the client end is as below:
msgrcv( msgqid, msgptr, msgsize, msgtype, 0 );
My program works fine when msgrcv () from /lib/libc.so.6 is called.
However it crashes when __libc_msgrcv() is called.
... (3 Replies)
Hi,
I am using the libxml2 sax parser to parse a in memory xml string along with validating it against a schema.
I am using the following code:
xmlSAXHandlerPtr sax_ = new xmlSAXHandler();
sax_->initialized = XML_SAX2_MAGIC;
sax_->startElementNs =... (0 Replies)
Hi all,
Sorry for the title because I didn't find a proper name for it. My question is about POSIX functions, such as timer_create(), mq_open() and pthread_create().
void test_queue()
{
struct mq_attr attr;
attr.mq_maxmsg = 10;
attr.mq_msgsize = 64;
mq_unlink("/my_test_queue");... (6 Replies)
Hi guys,
I am trying to find the following string in a file, but I always get pattern not found error, not sure what is missing here. Can you help please?
I do a less to open the xrates.log and then do a /'="18"' in the file and tried various combinations to search the below string.
String... (8 Replies)