Mix majordomo
GMessage* | Majordomo::CreateSimpleReqForHeaders (GMessage *pubKey) Creates REQ_FOR_HEADERS |
GMessage* | Majordomo::CreateSimpleReqForStor (File *fileToStore) Creates simple req for storage |
Err | Majordomo::DRCAnswerFile (const MsgField *dataFld) Serves CE_REPLY_FILE message |
Err | Majordomo::DRCAnswerFile (const MsgField *dataField) Serves CMD_ANSWER_FILE command |
Err | Majordomo::DRCRequestForHeaders (const MsgField *dataField, const ACID acid) Serves CMD_REQ_FOR_HEADERS message |
Err | Majordomo::DRCRequestForStorage (const MsgField *dataFld) Serves CE_REQ_FOR_STOR command |
Err | Majordomo::DRCRequestFromEso (MsgField *dataFld) Serves Eso's request for money |
Err | Majordomo::DRCTimeForPayment (MsgField *dataInMsgFld) DRCTimeForPayment (cmd to_payment) Dlouhy_komentar |
Err | Majordomo::DRCTimeForPayment (MsgField *dataInMsgFld) DRCTimeForPayment (cmd to_payment) |
Err | Majordomo::DRCTimeOutPayment (MsgField *dataInMsgFld) DRCTimeOutPayment (cmd to_curr_pay) Dlouhy_komentar |
Err | Majordomo::DRCTimeOutPayment (MsgField *dataInMsgFld) DRCTimeOutPayment (cmd to_curr_pay) |
MsgField* | Majordomo::DecryptByACPriv (const ACID acid, const MsgField *data) Decrypts data by asymetric key |
Err | Majordomo::GenerateThisSixAC (MsgField *onion, GMessage **generatedAC) Generates access certificate for this Eso |
Err | Majordomo::GenerateThisSixAC (MsgField *onion, GMessage **generatedAC) Generates access certificate for this Bank |
Queue* | Majordomo::GetACs (Char *type, const int count = 1, Queue *notIn = NULL) Gets ACs |
Err | Majordomo::GetAsymetricKey (GMessage **acPubKey) Gets Asymetric key from file |
Majordomo::Majordomo (Mix * parent, LogFile * majordomoLogFile) Majordomo constructor | |
Majordomo::Majordomo (Bank * parent, LogFile * majordomoLogFile) Bank Majordomo constructor | |
MsgField* | Majordomo::ParseCipheredData () Parses ciphered data |
void | Majordomo::PublishCertificates (GMessage * request) Publishes certificates to Acs servers |
void | Majordomo::UploadFile () Uploads file |
void | Majordomo::WaitForAnswersToFileToStor (int requestsSent) Waits for answers to CE_FILE_TO_STOR |
void | Majordomo::WaitForAnswersToReqForFile () Waits for answers to REQ_FOR_FILE |
void | Majordomo::WaitForAnswersToReqForHeaders () Waits for answers to REQ_FOR_HEADERS |
methods |
methods |
attributes
Mix majordomo. Processes various requests comming from network and from SIX also distributes messages to apropriate objects.Commands that it handles are: generate_onion get_certificates publish_certificates.
acid - ID of this Eso access certificate which was used to address thid message
processes the incoming request for headers
- continues the search in the search tree
- looks for the file on this server
- sends the headers found on this server
back to the client
- KO in the case of bad structure of dataField
or if fatal error comes (ex. NULL ptr to Finder)
- OK otherwise
(that means even in case of mistake in any step
of the algorithm [ex. cannot send the message
back to client] - these situations are only
written to the logFile)
acid - ID of this Eso access certificate which was used to address thid message
Reply-To-ID: ID of a message assigned by sender (Client)
Reply-To-AC: AC to reply to
File-Size: Size of file Client whishes to store
Storage-Time: RelTime for which the file should be stored
data - Data to decrypt.
generatedAC - out parameter returning
generatedAC - AC generated in this method.
count - Count of ACs to get.
notIn - Queue of ACs not wanted.
majordomoLogFile - Log file.
The incoming ciphered data looks like this:
GM_PUBLIC_KEY:
GM_DATA: (encrypted with Private Key)
GM_RANDOM: (random string)
GM_FILE: (decrypted file)
GM_PARAMETERS
GM_CERTIFICATE_1
GM_CERTIFICATE_2
...
GM_CERTIFICATE_"n"
alphabetic index hierarchy of classes
generated by doc++