| 731 | } |
| 732 | |
| 733 | bool AppInitServers() |
| 734 | { |
| 735 | RPCServer::OnStopped(&OnRPCStopped); |
| 736 | RPCServer::OnPreCommand(&OnRPCPreCommand); |
| 737 | if (!InitHTTPServer()) |
| 738 | return false; |
| 739 | if (!StartRPC()) |
| 740 | return false; |
| 741 | if (!StartHTTPRPC()) |
| 742 | return false; |
| 743 | if (GetBoolArg("-rest", DEFAULT_REST_ENABLE) && !StartREST()) |
| 744 | return false; |
| 745 | if (!StartHTTPServer()) |
| 746 | return false; |
| 747 | return true; |
| 748 | } |
| 749 | |
| 750 | /** Initialize lux. |
| 751 | * @pre Parameters should be parsed and config file should be read. |
no test coverage detected