GNU.WIKI: The GNU/Linux Knowledge Base

  [HOME] [PHP Manual] [HowTo] [ABS] [MAN1] [MAN2] [MAN3] [MAN4] [MAN5] [MAN6] [MAN7] [MAN8] [MAN9]

  [0-9] [Aa] [Bb] [Cc] [Dd] [Ee] [Ff] [Gg] [Hh] [Ii] [Jj] [Kk] [Ll] [Mm] [Nn] [Oo] [Pp] [Qq] [Rr] [Ss] [Tt] [Uu] [Vv] [Ww] [Xx] [Yy] [Zz]


       IxpMsg, IxpMsgMode, ixp_message


       #include <ixp.h>

       typedef struct IxpMsg IxpMsg;
       struct IxpMsg {
               char*   data; /* Beginning of buffer. */
               char*   pos;  /* Current position in buffer. */
               char*   end;  /* End of message. */
               uint    size; /* Size of buffer. */
               uint    mode; /* MsgPack or MsgUnpack. */

       enum IxpMsgMode {

       IxpMsg ixp_message(char *data, uint length, uint mode);


       The  IxpMsg struct represents a binary message, and is used extensively
       by libixp for converting messages to and from wire format. The location
       and  size  of  a  buffer are stored in data and size, respectively. pos
       points to the  location  in  the  message  currently  being  packed  or
       unpacked,  while  end  points  to  the  end of the message. The packing
       functions advance pos as they go, always ensuring that they don't  read
       or  write past end.  When a message is entirely packed or unpacked, pos
       whould be less than or equal to end. Any other state indicates error.

       ixp_message is a convenience function to pack  a  construct  an  IxpMsg
       from  a buffer of a given length and a given mode. pos and data are set
       to data and end is set to data + length.


       ixp_pu8(3),  ixp_pu16(3),  ixp_pu32(3),  ixp_pu64(3),   ixp_pstring(3),

  All copyrights belong to their respective owners. Other content (c) 2014-2018, GNU.WIKI. Please report site errors to
Page load time: 0.111 seconds. Last modified: November 04 2018 12:49:43.