Class responsible for handling messages comming to Eso
![]() | Majordomo (Eso * parent, LogFile * majordomoLogFile) Eso's majordomo constructor. |
![]() | Majordomo::DRCAnswerFromBank (MsgField *dataInMsgFld) DRCAnswerFromBank (cmd be_reply_to_resp) Dlouhy_komentar |
![]() | Majordomo::DRCAnswerFromBank (MsgField *dataInMsgFld) DRCAnswerFromBank (cmd be_reply_to_resp) |
![]() | Majordomo::DRCAnswerFromEso (MsgField *dataFld) Serves Eso's answer to reply to its request for money |
![]() | Majordomo::DRCAnswerHeader (const MsgField *dataFld) Serves CE_REPLY_HEADER message |
![]() | Majordomo::DecryptByACPriv (const ACID acid, const MsgField *eData) Decrypts data by private key |
![]() | Majordomo::DecryptByACPriv (const ACID acid, const MsgField *eData) Decrypts data with access private key |
![]() | Majordomo::DownloadFile () Downloads file from Esos |
![]() | Majordomo::DownloadHeaders () Downloads headers from Esos |
![]() | Majordomo::GetCertificates (string type, Size count) Asks mix for some certificates and then returns them |
![]() | Majordomo::GetCertificates (GMessage * request) Returns certificates from Mix's repository (Certificate Repository) |
![]() | Majordomo::GetOnion (Size onionLen, Size requestID) Asks Mix for onion |
![]() | Majordomo::GetPtrToACManager (Char *) Returns always NULL |
![]() | Majordomo::RequestStorage (ArrayGMessage *certificates, File *fileToStore) Asks Esos to store the file |
![]() | Majordomo::Run (void *) Acs majordomo Run() method |
![]() | Majordomo::Run (void * ) Run method in Client Majordomo |
![]() | Majordomo::Run (void *) Decides what to do with messages for which Mix is a final point |
![]() | Majordomo::WaitForAnswersToReqForStor (int requestsSent) Waits for answers to CE_REQUEST_FOR_STOR |
![]() | Majordomo::~Majordomo () Destructor of Majordomo |
![]() | Functions for ACManagers |
![]() | methods
|
methods
attributes
methods
Class responsible for handling messages comming to Eso. This class encapsulates main Eso's functionality. Its behaviour is inherited from general SixManager. Majordomo is capable of receiving messages from Mix and other Sixes in the Eternity Service, taking appropriate actions (such as to store or find a file) and creating replies.
virtual MsgField* DecryptByACPriv(const ACID acid, const MsgField *dData)
Err SendToEsos(Char *command, GMessage *msg, Int count)
Err Majordomo::DRCAnswerFromBank(MsgField *dataInMsgFld)
Err Majordomo::DRCAnswerFromBank(MsgField *dataInMsgFld)
Err Majordomo::DRCAnswerFromEso(MsgField *dataFld)
Err Majordomo::DRCAnswerHeader(const MsgField *dataFld)
MsgField* Majordomo::DecryptByACPriv(const ACID acid, const MsgField *eData)
eData - encrypted data
MsgField* Majordomo::DecryptByACPriv(const ACID acid, const MsgField *eData)
eData - Encrypted data
void Majordomo::DownloadFile()
void Majordomo::DownloadHeaders()
GMessage* Majordomo::GetCertificates(string type, Size count)
Command: get_certificates
Parameters:
Count:
Certificate-Type:
Request-ID:
count - Count of certificates to get.
void Majordomo::GetCertificates(GMessage * request)
GM_PARAMETERS
CERTIFICATE_TYPE
GM_COUNT
GMessage* Majordomo::GetOnion(Size onionLen, Size requestID)
requestID - RequestID to send to client
ACManager* Majordomo::GetPtrToACManager(Char *)
void Majordomo::RequestStorage(ArrayGMessage *certificates, File *fileToStore)
fileToStore - file to try to store
void* Majordomo::Run(void *)
Command: data_received
Parameters:
Data:
Command: get_certificates
Request-ID: ... Mix's request ID
Parameters:
Onion:
Certificate-Type:
Count:
Request-ID:
or
Command: data_received
Parameters:
Data:
Command: publish_certificates
Parameters:
Certificate-1:
Certificate-2:
...
Certificate-n:
And sends back a reply:
Command: send_data
Parameters:
Add-Hops:
Onion:
Data:
Command: certificates_received
Request-ID: ... Mix's request ID
Parameters:
Request-ID:
Certificates:
Certificae-1:
Certificae-2:
...
Certificae-n:
void* Majordomo::Run(void * )
void* Majordomo::Run(void *)
void Majordomo::WaitForAnswersToReqForStor(int requestsSent)
Majordomo::~Majordomo()
alphabetic index hierarchy of classes
generated by doc++