28 #ifndef CA_REPLAY_CONTROL_CHANNEL_MSG_PROC
29 #define CA_REPLAY_CONTROL_CHANNEL_MSG_PROC
THREAD_RETURN rp_loopPropagateTimestamp(void *param)
This class (interface) adds the functionality used by last and middle mixes to detecte replays.
A Control channel for the exchange of the current replay detection timestamps.
CAThread * m_pThreadTimestampPropagation
SINT32 proccessGotTimestamp(const CAReplayControlChannel *pReceiver, const UINT8 *strMixID, const UINT32 offset) const
Proccesses a received replay timestamp rt from mix strMixID.
SINT32 initTimestampsMessageTemplate()
We initialise the template used to generate the idividual responses to gettimestamps requests accordi...
UINT32 m_u32PropagationInterval
CAReplayControlChannel * m_pDownstreamReplayControlChannel
SINT32 stopTimeStampPorpagation()
Stops the timestamp propagation.
const CAMixWithReplayDB * m_pMix
SINT32 propagateCurrentReplayTimestamp()
Propagates downstream the current replay timestamp.
CAReplayCtrlChannelMsgProc(const CAMixWithReplayDB *pMix)
Initialises the replay control channel messages processor with the necessary information.
friend THREAD_RETURN rp_loopPropagateTimestamp(void *param)
~CAReplayCtrlChannelMsgProc()
SINT32 proccessGetTimestamp(const CAReplayControlChannel *pReceiver, const UINT8 *strMixID) const
Proccesses a getTimeStamps request on a reply control channel.
XERCES_CPP_NAMESPACE::DOMDocument * m_docTemplate
CAReplayControlChannel * m_pUpstreamReplayControlChannel
SINT32 sendGetTimestamp(const UINT8 *strMixID)
Sends upstram a request for the replay timestamp for the given mix.
SINT32 startTimeStampPorpagation(UINT32 minutesPropagationIntervall)
Sends the current replay timestamp periodically on the downstream replay control channel.