MainLogic.h 619 B

12345678910111213141516171819202122232425262728
  1. //
  2. // Created by miti on 2020-01-01.
  3. //
  4. #ifndef DECRYPTORAPP_MAINLOGIC_H
  5. #define DECRYPTORAPP_MAINLOGIC_H
  6. #include <unistd.h>
  7. #include "LA.h"
  8. #include "ProtobufMessageRW.h"
  9. #include <string>
  10. #include <vector>
  11. #include "PostLAMessaging.h"
  12. class MainLogic {
  13. uint32_t enclave_id;
  14. PostLAMessaging messaging;
  15. LA laInitiator;
  16. int set_up_listening_socket(int port);
  17. int accept_fd(int fd);
  18. int la_post_la_with_verifier();
  19. int la_post_la_with_target();
  20. public:
  21. void set_enclave_id(uint32_t given_enclave_id);
  22. int run_deployment_runtime_stage_logic();
  23. };
  24. #endif //DECRYPTORAPP_MAINLOGIC_H