blob: 28982191e9b247c6775350f574a160a46bd0bd7f [file] [log] [blame]
Shad Ansari01b0e652018-04-05 21:02:53 +00001/*
2 Copyright (C) 2018 Open Networking Foundation
3
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17#include <iostream>
18
Shad Ansari01b0e652018-04-05 21:02:53 +000019#include "server.h"
Shad Ansarib7b0ced2018-05-11 21:53:32 +000020#include "core.h"
Shad Ansari01b0e652018-04-05 21:02:53 +000021
Shad Ansari01b0e652018-04-05 21:02:53 +000022int main(int argc, char** argv) {
23
Shad Ansari627b5782018-08-13 22:49:32 +000024 Status status = Enable_(argc, argv);
Shad Ansari01b0e652018-04-05 21:02:53 +000025 if (!status.ok()) {
26 std::cout << "ERROR: Enable_ failed - "
27 << status.error_code() << ": " << status.error_message()
28 << std::endl;
29 return 1;
30 }
31
32 RunServer();
33
Shad Ansari627b5782018-08-13 22:49:32 +000034 return 0;
Shad Ansari01b0e652018-04-05 21:02:53 +000035}