29 #ifndef __CAABSTRACTCONTROLCHANNEL__
30 #define __CAABSTRACTCONTROLCHANNEL__
32 #if !defined ONLY_LOCAL_PROXY || defined INCLUDE_LAST_MIX
91 UINT32 tmpBLen=msgLen+2+16;
99 memcpy(tmpB+2,msgXML,msgLen);
102 tmpB[0]=(
UINT8)(msgLen>>8);
103 tmpB[1]=(
UINT8)(msgLen&0xFF);
The base of each control channel.
virtual SINT32 proccessMessageComplete()=0
Called if a whole messages was received, which should be delivered to the final recipient.
SINT32 sendXMLMessage(const XERCES_CPP_NAMESPACE::DOMDocument *pDocMsg) const
Call to send a XML message via this control channel.
virtual ~CAAbstractControlChannel()
CAControlChannelDispatcher * m_pDispatcher
virtual SINT32 proccessMessage(const UINT8 *msg, UINT32 msglen)=0
Processes some bytes of a message we got from the communication channel.
CAAbstractControlChannel(UINT8 id, bool bIsEncrypted)
UINT32 getID() const
Returns the id of this control channel.
SINT32 setDispatcher(CAControlChannelDispatcher *pDispatcher)
Sets the Dispatcher.
SINT32 sendXMLMessage(const UINT8 *msgXML, UINT32 msgLen) const
Call to send a XML message via this control channel.
This class "dispatches" messages which it receives via proccessMixPacket() to the associated control ...
SINT32 sendMessages(UINT32 id, const UINT8 *msg, UINT32 msglen)
SINT32 encryptMessage(const UINT8 *in, UINT32 inlen, UINT8 *out, UINT32 *outlen)
Encrypts a control channel message.
static SINT32 dumpToMem(const DOMNode *node, UINT8 *buff, UINT32 *size)
Dumps the node and all childs into buff.