HIPC  0.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
posix_clientutils.c File Reference
#include <errno.h>
#include <hipc/posix/ioutils.h>
#include <hipc/posix/clientutils.h>
Include dependency graph for posix_clientutils.c:

Go to the source code of this file.

Functions

enum HIPC_errno hipcPosixReadMsg (void *arg, hipc_msg msg)
 Read a HIPC message from fd. More...
 
enum HIPC_errno hipcPosixWriteMsg (void *arg, const hipc_msg msg)
 Write a HIPC message to fd. More...
 

Function Documentation

enum HIPC_errno hipcPosixReadMsg ( void *  arg,
hipc_msg  msg 
)

Read a HIPC message from fd.

errno is set to 0 at the beginning of this function.

Parameters
argA pointer to a fd
msgA HIPC message is read to this argument.
Return values
HIPC_SUCCESSA message is read successfully.
HIPC_ERR_IO_READmeans occurrence of an error related to IO. errno may be set by lower layers.

Definition at line 16 of file posix_clientutils.c.

References HIPC_ERR_IO_READ, HIPC_MSGHDR_SIZE, HIPC_SUCCESS, hipcMsgBdySize(), and hipcPosixReadExactly().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

enum HIPC_errno hipcPosixWriteMsg ( void *  arg,
const hipc_msg  msg 
)

Write a HIPC message to fd.

errno is set to 0 at the beginning of this function.

Parameters
argA pointer to a fd
msgA HIPC message to be written
Return values
HIPC_SUCCESSA message is written successfully.
HIPC_ERR_IO_WRITEmeans occurrence of an error related to IO. errno may be set by lower layers.

Definition at line 47 of file posix_clientutils.c.

References HIPC_ERR_IO_WRITE, HIPC_SUCCESS, hipcMsgTotalSize(), and hipcPosixWriteExactly().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function: