#include <ResponseTracker.h>
Inheritance diagram for CODEX_Quorum::ResponseTracker:
Public Member Functions | |
| virtual | ~ResponseTracker () |
| Destructor. | |
| virtual void | insert (unsigned char *key, ResponseInfo *m)=0 |
| Attach a map of Message%s (keyed by server ID) with request identifier key. | |
| virtual bool | remove (const unsigned char *key, bool del=false)=0 |
| Remove the map of Message%s with request identifier key. | |
| virtual bool | check (const unsigned char *data, int length, unsigned int server)=0 |
| Check if the incoming data is a response to a registered request. | |
| virtual ResponseInfo * | operator() (const unsigned char *msgID)=0 |
Pointer to the ResponseInfo corresponding to the specified message ID, or 0 if the ID isn't found. | |
| virtual unsigned char * | extractKey (const unsigned char *data)=0 |
| Helper routine to extract the key (message ID) from an incoming or outgoing message. | |
Typically, only the templated derived class ConcreteResponseTracker will be used in an application.
Definition at line 46 of file ResponseTracker.h.
|
||||||||||||||||
|
Check if the incoming data is a response to a registered request. If so, the data is added to the corresponding MessageVector. Ownership of the data is kept by the calling routine.
Implemented in CODEX_Quorum::ConcreteResponseTracker< ST, MT >. Referenced by CODEX_Quorum::StaticByzantineQuorumSystem< N, T >::poll(). |
|
|
Helper routine to extract the key (message ID) from an incoming or outgoing message.
Implemented in CODEX_Quorum::ConcreteResponseTracker< ST, MT >. Referenced by CODEX_Quorum::QuorumSystem::extractKey(). |
|
||||||||||||
|
Attach a map of Message%s (keyed by server ID) with request identifier key. Ownership of the arguments is taken by the object. Implemented in CODEX_Quorum::ConcreteResponseTracker< ST, MT >. Referenced by CODEX_Quorum::StaticByzantineQuorumSystem< N, T >::broadcastMessage(), and CODEX_Quorum::StaticByzantineQuorumSystem< N, T >::unicastMessage(). |
|
||||||||||||
|
Remove the map of Message%s with request identifier key.
Implemented in CODEX_Quorum::ConcreteResponseTracker< ST, MT >. Referenced by CODEX_Quorum::StaticByzantineQuorumSystem< N, T >::poll(). |
1.4.1