You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

httprpc.h 811B

1234567891011121314151617181920212223242526272829303132333435
  1. // Copyright (c) 2015 The Starwels developers
  2. // Distributed under the MIT software license, see the accompanying
  3. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
  4. #ifndef STARWELS_HTTPRPC_H
  5. #define STARWELS_HTTPRPC_H
  6. #include <string>
  7. #include <map>
  8. /** Start HTTP RPC subsystem.
  9. * Precondition; HTTP and RPC has been started.
  10. */
  11. bool StartHTTPRPC();
  12. /** Interrupt HTTP RPC subsystem.
  13. */
  14. void InterruptHTTPRPC();
  15. /** Stop HTTP RPC subsystem.
  16. * Precondition; HTTP and RPC has been stopped.
  17. */
  18. void StopHTTPRPC();
  19. /** Start HTTP REST subsystem.
  20. * Precondition; HTTP and RPC has been started.
  21. */
  22. bool StartREST();
  23. /** Interrupt RPC REST subsystem.
  24. */
  25. void InterruptREST();
  26. /** Stop HTTP REST subsystem.
  27. * Precondition; HTTP and RPC has been stopped.
  28. */
  29. void StopREST();
  30. #endif