29 #ifndef _CASYNCCONTROLCHANNEL_
30 #define _CASYNCCONTROLCHANNEL_
31 #if !defined ONLY_LOCAL_PROXY || defined INCLUDE_FIRST_MIX
62 CAMsg::printMsg(LOG_DEBUG,
"CASyncControlChannel::proccessMessage - msglen=%u\n",msglen);
112 CAMsg::printMsg(LOG_DEBUG,
"CASyncControlChannel::proccessMessageComplete() \n");
120 CAMsg::printMsg(LOG_DEBUG,
"CASyncControlChannel:: received XML document could not be parsed\n");
124 CAMsg::printMsg(LOG_DEBUG,
"CASyncControlChannel::proccessMessageComplete() call processXMLMessage()\n");
XERCES_CPP_NAMESPACE::DOMDocument * parseDOMDocument(const UINT8 *const buff, UINT32 len)
Parses a buffer containing an XML document and returns this document.
The base of each control channel.
CAControlChannelDispatcher * m_pDispatcher
bool isKeySet()
Temp workaorund function - to be removed soon...
SINT32 decryptMessage(const UINT8 *in, UINT32 inlen, UINT8 *out, UINT32 *outlen)
Decrypts a control channel message, which has to be of form: cipher text auth tag - 16 bytes.
static SINT32 printMsg(UINT32 typ, const char *format,...)
Writes a given message to the log.
A synchronous control channel.
UINT8 * m_MsgBuff
buffer for assembling the parts of the message
CASyncControlChannel(UINT8 id, bool bIsEncrypted)
Constructor for a synchronized (e.g.
UINT32 m_MsgBytesLeft
how much bytes we need until all bytes are received?
SINT32 proccessMessageComplete()
Parses the bytes in m_MsgBuff and calls processXMLMessage()
UINT32 m_aktIndex
how much bytes have we received already?
SINT32 proccessMessage(const UINT8 *msg, UINT32 msglen)
Processes some bytes of a message we got from the communication channel.
virtual SINT32 processXMLMessage(const XERCES_CPP_NAMESPACE::DOMDocument *docMsg)=0
Override this method to receive a XML Message.
virtual ~CASyncControlChannel()