Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Private Attributes
ipcMessage Class Reference

#include <ipcMessage.h>

Inheritance diagram for ipcMessage:
Inheritance graph
[legend]
Collaboration diagram for ipcMessage:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ipcMessage ()
 ipcMessage (const nsID &target, const char *data, PRUint32 dataLen)
 ~ipcMessage () NS_HIDDEN
 NS_HIDDEN_ (void) Reset()
 NS_HIDDEN_ (ipcMessage *) Clone() const
 NS_HIDDEN_ (PRStatus) Init(const nsID &target
 NS_HIDDEN_ (PRStatus) SetData(PRUint32 offset
void SetFlag (PRUint16 flag)
void ClearFlag (PRUint16 flag)
PRBool TestFlag (PRUint16 flag) const
PRBool IsComplete () const
const ipcMessageHeaderHeader () const
const nsIDTarget () const
const char * Data () const
PRUint32 DataLen () const
const char * MsgBuf () const
PRUint32 MsgLen () const
 NS_HIDDEN_ (PRBool) Equals(const nsID &target
 NS_HIDDEN_ (PRBool) Equals(const ipcMessage *msg) const
 NS_HIDDEN_ (PRStatus) WriteTo(char *buf
 NS_HIDDEN_ (PRStatus) ReadFrom(const char *buf

Public Attributes

const char * data
const char PRUint32 dataLen
const char PRUint32 dataLen const
PRUint32 bufLen
PRUint32 PRUint32bytesWritten
PRUint32 PRUint32 PRBoolcomplete
PRUint32 PRUint32bytesRead
class ipcMessagemNext
PRUint32 mMetaData

Private Attributes

ipcMessageHeadermMsgHdr
PRUint32 mMsgOffset
PRPackedBool mMsgComplete

Detailed Description

Definition at line 86 of file ipcMessage.h.


Constructor & Destructor Documentation

ipcMessage::ipcMessage ( ) [inline]

Definition at line 89 of file ipcMessage.h.

Here is the caller graph for this function:

ipcMessage::ipcMessage ( const nsID target,
const char *  data,
PRUint32  dataLen 
) [inline]

Definition at line 96 of file ipcMessage.h.

        : mNext(NULL)
        , mMetaData(0)
        , mMsgHdr(NULL)
        , mMsgOffset(0)
        { Init(target, data, dataLen); }

Here is the call graph for this function:

Definition at line 43 of file ipcMessage.cpp.

{
    if (mMsgHdr)
        free(mMsgHdr);
}

Member Function Documentation

void ipcMessage::ClearFlag ( PRUint16  flag) [inline]

Definition at line 139 of file ipcMessage.h.

{ mMsgHdr->mFlags &= ~flag; }
const char* ipcMessage::Data ( ) const [inline]

Definition at line 153 of file ipcMessage.h.

{ return (char *) mMsgHdr + IPC_MSG_HEADER_SIZE; }

Here is the caller graph for this function:

PRUint32 ipcMessage::DataLen ( ) const [inline]

Definition at line 154 of file ipcMessage.h.

Here is the caller graph for this function:

Definition at line 151 of file ipcMessage.h.

{ return mMsgHdr; }
PRBool ipcMessage::IsComplete ( ) const [inline]

Definition at line 146 of file ipcMessage.h.

{ return mMsgComplete; }
const char* ipcMessage::MsgBuf ( ) const [inline]

Definition at line 155 of file ipcMessage.h.

{ return (char *) mMsgHdr; }

Here is the caller graph for this function:

PRUint32 ipcMessage::MsgLen ( ) const [inline]

Definition at line 156 of file ipcMessage.h.

{ return mMsgHdr->mLen; }

Here is the caller graph for this function:

Reimplemented in ipcmMessageForward.

void ipcMessage::SetFlag ( PRUint16  flag) [inline]

Definition at line 138 of file ipcMessage.h.

{ mMsgHdr->mFlags |= flag; }

Here is the caller graph for this function:

const nsID& ipcMessage::Target ( ) const [inline]

Reimplemented in ipcmMessageClientDelTarget, and ipcmMessageClientAddTarget.

Definition at line 152 of file ipcMessage.h.

{ return mMsgHdr->mTarget; }

Here is the caller graph for this function:

PRBool ipcMessage::TestFlag ( PRUint16  flag) const [inline]

Definition at line 140 of file ipcMessage.h.

{ return mMsgHdr->mFlags & flag; }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 174 of file ipcMessage.h.

Definition at line 183 of file ipcMessage.h.

Definition at line 174 of file ipcMessage.h.

Definition at line 174 of file ipcMessage.h.

Definition at line 166 of file ipcMessage.h.

Reimplemented in ipcmMessageForward.

Definition at line 122 of file ipcMessage.h.

Reimplemented in ipcmMessageForward.

Definition at line 122 of file ipcMessage.h.

Definition at line 197 of file ipcMessage.h.

Definition at line 204 of file ipcMessage.h.

Definition at line 200 of file ipcMessage.h.

Definition at line 203 of file ipcMessage.h.

Definition at line 190 of file ipcMessage.h.


The documentation for this class was generated from the following files: