Client majordomo
![]() | Majordomo::AskForEsoCertificates () Asks for Eso certificates |
![]() | Majordomo::DRCAnswerHeader (const MsgField *dataField) Serves CMD_ANSWER_HEADER message |
![]() | Majordomo::DRCDTSGetFields (const MsgField *dataFld, GMessage **replyToAC, TID *replyToTID, TID *inReplyToTID, MsgField **ffid, MsgField **keywords, MsgField **dataToStoreFld) Parses the GMessage comming with command CE_DATA_TO_STORE |
![]() | Majordomo::DRCDataToStore (const MsgField *dataFld, const ACID acid) Serves CE_DATA_TO_STOR command |
![]() | Majordomo::DRCMoneyFromClient (MsgField *dataFld) Serves command from client |
![]() | Majordomo::FillReplyAllocation (GMessage *outMsg, TID inReplyToTID, MsgField *payPlan) Sets the outMsg as ReplyAllocation |
![]() | Majordomo::FillReplyFile (GMessage *outMsg, TID inReplyToTID, MsgField *aFile) Sets the outMsg as ReplyFile |
![]() | Majordomo::FillReplyFileStored (GMessage *outMsg, TID inReplyToTID) Sets the outMsg as ReplyFileStored |
![]() | Majordomo::FillReplyHeader (GMessage *outMsg, TID inReplyToTID, GMessage *aHeader) Sets the outMsg as ReplyHeader |
![]() | Majordomo::GetPtrToACManager (Char *type) Returns pointer to ACManager |
![]() | Majordomo::GetPtrToACManager (Char *type) Returns pointer to ACManeger |
![]() | Majordomo::GetTime () Gets current time |
![]() | Majordomo::HandleGeneratedAC (GMessage *generatedAC) Handles generated access certificate |
![]() | Majordomo::HandleGeneratedAC (GMessage *generatedAC) Saves the generated AC to ACManager |
![]() | Majordomo::Initialize () Initializes Bank Majordomo |
![]() | Majordomo::InsertToOutMsgQueue (GMessage *msg) Inserts message to outMsgQueue |
![]() | Majordomo::LoadPrivateKey () Returns Client's privKey |
![]() | Majordomo::SendData (MsgField * data, GMessage * destination, string destinationType, Size hops) Send data to onion |
![]() | Majordomo::SendToEsos (Char *command, GMessage *msg, Int count) Sends message to number of Esos |
![]() | Majordomo::StoreFile (ArrayGMessage *certificates) Stores file on Esos |
![]() | Majordomo::SwitchDataReceivedCommand (const Char *command, const MsgField *dataFld, const ACID acid) Chooses the method to handle the command |
![]() | methods
|
![]() | attributes | ||||||||||||
![]() | methods
|
Client majordomo. Implements all the tasks for communication with Eso Mix Bank and is an expert in protocols used between these entities.
methods
virtual Err SwitchDataReceivedCommand(const Char *command, const MsgField *dataFld, const ACID acid)
virtual Err GenerateThisSixAC(MsgField *onion, GMessage **generatedAC)
Err GenerateACID(ACID *acid)
Err GetAsymetricKey(GMessage **acPubKey)
Err GenerateAsymetricKey()
virtual MsgField* DecryptByACPriv(const ACID acid, const MsgField *dData)
methods
Majordomo(Client * parent, LogFile * logFile)
virtual ~Majordomo()
virtual void* Run(void *)
virtual ACManager* GetPtrToACManager(Char *type)
virtual Queue* GetACs(Char *type, const int count = 1, Queue *notIn = NULL)
Err Majordomo::AskForEsoCertificates()
Err Majordomo::DRCAnswerHeader(const MsgField *dataField)
acid - ID of this Eso access certificate which was used to address thid message
Err Majordomo::DRCDTSGetFields(const MsgField *dataFld, GMessage **replyToAC, TID *replyToTID, TID *inReplyToTID, MsgField **ffid, MsgField **keywords, MsgField **dataToStoreFld)
Reply-To-ID: ID of a message assigned by sender (Client)
FFID:
Keywords:
Data:
replyToAC - out parameter for Reply-To access certificate
replyToTID - out parameter for Reply-To message ID
inReplyToTID - out parameter for In-Reply-To message ID
ffid - out parameter for file find ID
keywords - out parameter for keywords
dataToStoreFld - out parameter for data to store
Err Majordomo::DRCDataToStore(const MsgField *dataFld, const ACID acid)
In-Reply-To-TID: ID of a EC_REPLY_ALLOC message
Reply-To-ID: ID of a message assigned by sender (Client)
Reply-To-AC: AC to reply to
FFID:
Keywords:
Data:
Err Majordomo::DRCMoneyFromClient(MsgField *dataFld)
Err Majordomo::FillReplyAllocation(GMessage *outMsg, TID inReplyToTID, MsgField *payPlan)
Err Majordomo::FillReplyFile(GMessage *outMsg, TID inReplyToTID, MsgField *aFile)
Err Majordomo::FillReplyFileStored(GMessage *outMsg, TID inReplyToTID)
Err Majordomo::FillReplyHeader(GMessage *outMsg, TID inReplyToTID, GMessage *aHeader)
ACManager* Majordomo::GetPtrToACManager(Char *type)
ACManager* Majordomo::GetPtrToACManager(Char *type)
ESTime* Majordomo::GetTime()
Err Majordomo::HandleGeneratedAC(GMessage *generatedAC)
Err Majordomo::HandleGeneratedAC(GMessage *generatedAC)
Err Majordomo::Initialize()
Err Majordomo::InsertToOutMsgQueue(GMessage *msg)
GMessage* Majordomo::LoadPrivateKey()
void Majordomo::SendData(MsgField * data, GMessage * destination, string destinationType, Size hops)
destination - Onion to send the data to.
hops - number of hops to add.
Err Majordomo::SendToEsos(Char *command, GMessage *msg, Int count)
msg - message to be sent to Esos
count - count of Esos to send the message to
void Majordomo::StoreFile(ArrayGMessage *certificates)
Err Majordomo::SwitchDataReceivedCommand(const Char *command, const MsgField *dataFld, const ACID acid)
dataFld - got data
acid - ID of certificate to which the message was sent
alphabetic index hierarchy of classes
generated by doc++