You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



Main Page   Compound List   File List   Compound Members  

tmIPCModule Class Reference

#include <tmIPCModule.h>

List of all members.

Static Public Member Functions

void Shutdown ()
void Init ()
void HandleMsg (ipcClientHandle client, const nsID &target, const void *data, PRUint32 dataLen)
void SendMsg (PRUint32 aDestClientIPCID, tmTransaction *aTransaction)

Static Protected Member Functions

nsresult InitInternal ()

Static Protected Attributes

tmTransactionManagertm


Detailed Description

Basically an interface between the tmTransactionManager and the IPC daemon. Does little else than format the data from one party into a format understandable to the other.

The reason for this class is to try and abstract the transportation layer the transaction service uses. As it is, I think some dependancies on the IPC daemon impl have creeped into the tmTransactionManager and it's support classes, but they are minor and if need be can surely be removed.


Member Function Documentation

void tmIPCModule::HandleMsg ipcClientHandle    client,
const nsID &    target,
const void *    data,
PRUint32    dataLen
[static]
 

Receives a message from the IPC daemon, creates a transaction and sends it to the TM to deal with.

void tmIPCModule::Init   [static]
 

Check the TM, create it if neccessary.

nsresult tmIPCModule::InitInternal   [static, protected]
 

tm should be null coming into this method. This does NOT delete tm first.

Returns:
NS_OK if everything succeeds

NS_ERROR_OUT_OF_MEMORY if creating the TM fails

NS_ERROR_FAILURE if something else fails creating the TM

void tmIPCModule::SendMsg PRUint32    aDestClientIPCID,
tmTransaction   aTransaction
[static]
 

Sends the message to the IPC daemon to be deliverd to the client arg.

void tmIPCModule::Shutdown   [static]
 

Clean up the TM


The documentation for this class was generated from the following file:
Generated on Mon Feb 24 10:22:50 2003 for transaction manager by doxygen1.3-rc3