View topic - MsgReceive() vs. MsgReceivev()

MsgReceive() vs. MsgReceivev()

anything that doesn't fit to other groups.

MsgReceive() vs. MsgReceivev()

Postby hanslad » Mon Apr 28, 2003 12:37 pm

What is the difference between MsgReceive() and MsgReceivev()?

I've looked in the Library Reference at ... about.html, but I can't seem to find a difference.
Is there any?

New Member
Posts: 1
Joined: Fri Jan 31, 2003 9:07 am

Postby cdm » Mon Apr 28, 2003 7:12 pm

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.
QNX Master
Posts: 789
Joined: Fri Jul 05, 2002 9:38 am

Postby drodrigueza » Tue Apr 29, 2003 9:35 am

I recommend you the book:

Getting Started with QNX Neutrino 2 by Rob Krten.

It explains the difference with examples, too.
Active Member
Posts: 92
Joined: Wed Jul 24, 2002 3:22 pm
Location: Madrid, Spain

Return to General Programming

Who is online

Users browsing this forum: Google [Bot] and 4 guests