HIPC  0.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
hipc.c File Reference
#include <stdint.h>
#include <hipc.h>
Include dependency graph for hipc.c:

Go to the source code of this file.

Functions

unsigned char hipcMsghdrBdysize (unsigned char const *const msghdr)
 Returns message size determined by a message header. More...
 
unsigned char hipcEndian (void)
 Returns endian of the system. More...
 

Function Documentation

unsigned char hipcMsghdrBdysize ( unsigned char const *const  msghdr)

Returns message size determined by a message header.

Only GET type is treated specially.

Parameters
msghdrHIPC message header
Returns
message size

Definition at line 12 of file hipc.c.

References HIPC_MESSAGE_TYPE_GET, HIPC_MSGHDR_BYTE_BDYSZ, and HIPC_MSGHDR_BYTE_TYPE.

Referenced by hipcMsgBdySize(), hipcMsgdBdySize(), hipcMsgTotalSize(), hipcUsocAccept(), hipcUsocAcceptSimple(), and test_hipcMsghdrBdysize().

Here is the caller graph for this function:

unsigned char hipcEndian ( void  )

Returns endian of the system.

Returns
ASCII character value according to endian; 'B': Big, 'l': little, 'o': other

Definition at line 25 of file hipc.c.

Referenced by hipcClientInit(), hipcScfgInit(), and test_hipcEndian().

Here is the caller graph for this function: