MainLogic.h 639 B

1234567891011121314151617181920212223242526272829
  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 <phpcpp.h>
  12. #include "PostLAMessaging.h"
  13. class MainLogic {
  14. uint32_t enclave_id;
  15. PostLAMessaging messaging;
  16. LA laInitiator;
  17. int set_up_listening_socket(int port);
  18. int accept_fd(int fd);
  19. int la_post_la_with_verifier();
  20. int la_post_la_with_target();
  21. public:
  22. void set_enclave_id(uint32_t given_enclave_id);
  23. int run_deployment_runtime_stage_logic();
  24. };
  25. #endif //DECRYPTORAPP_MAINLOGIC_H