View topic - MsgReceive() vs. MsgReceivev()

Page 1 of 1

MsgReceive() vs. MsgReceivev()

PostPosted: Mon Apr 28, 2003 12:37 pm
by hanslad
Hello
What is the difference between MsgReceive() and MsgReceivev()?

I've looked in the Library Reference at
http://www.qnx.com/developer/docs/momen ... about.html, but I can't seem to find a difference.
Is there any?

Thanks!

PostPosted: Mon Apr 28, 2003 7:12 pm
by cdm
Yes, one puts data into a single linear buffer and the other puts it into a set of iov's (multiple buffers). The v means it uses iovs. The iov versions allow you to do neat things like appending header data to a payload without having to use a memcpy() to combine them yourself.

PostPosted: Tue Apr 29, 2003 9:35 am
by drodrigueza
I recommend you the book:

Getting Started with QNX Neutrino 2 by Rob Krten.

It explains the difference with examples, too.