Hi matthew,
the ice file:
Code:
#ifndef _H_TEST_H_
#define _H_TEST_H_
module VGProxy
{
struct MGEvent
{
int ResID;
int CallID;
int EventID;
int Reason;
string DTMFString;
};
struct SGEvent
{
int ResID;
int CallID;
int EventID;
int EventData;
string CallerID;
string CalledID;
string OriCallerID;
string OriCalledID;
string rfu;
};
interface VGService
{
int mgPlayVoice(int nResID,int nCallID,string szFileName,string szInteruptKeys,int nRate,int nBeginTime);
int sgAnswerCall(int nResID,int nCallID);
int sgReleaseCall(int nResID,int nCallID);
int GetMgEvt(int nTimeout, out MGEvent event);
int GetSgEvt(int nTimeout, out SGEvent event);
};
};
#endif
The ice client invoked the ice server by ice interface,the ice server invoked another RPC server by RPC interface.
The ice server and the rpc server were in the same PC,the ice client was in the other PC.
The ice client did these operations: answer a call,play a voice file, release the call,meanwhile receive the events.
when I increasing the presure , the cpu load of the ice server was higher than that of the RPC server.
How to reduce the cpu load of the ice server?
Thank you very much!