29 #ifdef REPLAY_DETECTION
37 CAMsg::printMsg(LOG_DEBUG,
"CAReplayControlChannel - constructor - pProcessor=%p\n",pProcessor);
50 CAMsg::printMsg(LOG_DEBUG,
"CAReplayControlChannel::processXMLMessage()\n");
52 DOMElement* elemRoot=doc->getDocumentElement();
56 if(
equals(elemRoot->getNodeName(),
"GetTimestamp"))
65 else if(
equals(elemRoot->getNodeName(),
"Mix"))
68 CAMsg::printMsg(LOG_DEBUG,
"CAReplayControlChannel::processXMLMessage() - got a timestamp\n");
77 DOMElement *elemReplayTimestamp;
83 CAMsg::printMsg(LOG_DEBUG,
"CAReplayControlChannel::processXMLMessage() - call m_pProcessor->proccessGotTimestamp() - m_pProcessor=%p\n",
m_pProcessor);
SINT32 getDOMElementValue(const DOMNode *const pElem, UINT8 *value, UINT32 *valuelen)
Returns the content of the text node(s) under elem as null-terminated C String.
bool equals(const XMLCh *const e1, const char *const e2)
SINT32 getDOMChildByName(const DOMNode *pNode, const char *const name, DOMElement *&child, bool deep)
SINT32 getDOMElementAttribute(const DOMNode *const elem, const char *attrName, UINT8 *value, UINT32 *len)
static SINT32 printMsg(UINT32 typ, const char *format,...)
Writes a given message to the log.
const CAReplayCtrlChannelMsgProc * m_pProcessor
virtual SINT32 processXMLMessage(const XERCES_CPP_NAMESPACE::DOMDocument *doc)
Reads incoming replay timestamps or timestamp requests and delegates them to the associated CAReplayC...
virtual ~CAReplayControlChannel(void)
CAReplayControlChannel(const CAReplayCtrlChannelMsgProc *pProcessor)
SINT32 proccessGotTimestamp(const CAReplayControlChannel *pReceiver, const UINT8 *strMixID, const UINT32 offset) const
Proccesses a received replay timestamp rt from mix strMixID.
SINT32 proccessGetTimestamp(const CAReplayControlChannel *pReceiver, const UINT8 *strMixID) const
Proccesses a getTimeStamps request on a reply control channel.
A synchronous control channel.
#define REPLAY_CONTROL_CHANNEL_ID