2 * Copyright 2019 AT&T Intellectual Property
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
19 // Created by adi ENZEL on 11/26/19.
31 #include <sys/socket.h>
32 #include <arpa/inet.h>
33 #include <netinet/in_systm.h>
34 #include <netinet/in.h>
35 #include <netinet/ip.h>
36 #include <netinet/ip_icmp.h>
37 #include <netinet/sctp.h>
40 #include <sys/param.h>
44 #include <sys/epoll.h>
46 #include <shared_mutex>
51 #include "rapidjson/document.h"
52 #include "rapidjson/writer.h"
53 #include "rapidjson/stringbuffer.h"
56 using namespace rapidjson;
62 int openFile(string const& configFile) {
63 file.open(configFile.c_str());
71 void getJsonDoc(string json);
73 string getBase64(Document &document);