Warning:  main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/r/resmgr_msgwritev.html on line 1
Warning:  main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/r/resmgr_msgwritev.html on line 1
Warning:  main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/r/resmgr_msgwritev.html on line 8
Warning:  main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/r/resmgr_msgwritev.html on line 8
Write a message to a client
#include <sys/resmgr.h>
int resmgr_msgwritev( resmgr_context_t *ctp,
                      const iov_t *smsg,
                      int sparts,
                      int offset );
- ctp
 
- A pointer to a
  resmgr_context_t
  structure that the resource-manager library uses to pass context information
  between functions.
  This function extracts the rcvid from this structure.
 
- iov
 
- An array of buffers that contains the data you want to write.
 
- parts
 
- The number of elements in the array.
  This function doesn't let you write past the end of the sender's buffer;
  it returns the number of bytes actually written.
 
- offset
 
- An offset into the sender's buffer that indicates where you want
  to start writing the data.
 
libc
Use the -l c option to
qcc
to link against this library.
This library is usually included automatically.
The resmgr_msgwritev() function
is a cover function for 
MsgWritev(),
and performs the exact same functionality.
It's provided for consistency
with 
resmgr_msgwrite().
The number of bytes written, or -1 if an error occurred
(errno is set).
- EFAULT
 
- A fault occurred in the sender's address space when a server
	tried to access the sender's return message buffer.
 
- ESRCH	
 
- The thread indicated by ctp -> rcvid
								does not exist or has had its connection detached.
 
- ESRVRFAULT
	
 
- A fault occurred when the kernel tried to access the buffers
		provided.
 
QNX Neutrino
| Safety: |  | 
| Cancellation point | 
    No | 
| Interrupt handler | 
    No | 
| Signal handler | 
    Yes | 
| Thread | 
    Yes | 
MsgWritev(),
resmgr_context_t,
resmgr_msgread(),
resmgr_msgreadv(),
resmgr_msgwrite()
“Layers in a resource manager”
in the Bones of a Resource Manager chapter of Writing a Resource Manager
Resource Managers
chapter of Getting Started with QNX Neutrino
Warning:  main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/r/resmgr_msgwritev.html on line 169
Warning:  main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/r/resmgr_msgwritev.html on line 169