ISAAC
Overview :: Library Doc :: Server Doc :: JSON Commands

In Situ Animation of Accelerated Computations

InsituConnectorMaster.hpp
Go to the documentation of this file.
1 /* This file is part of ISAAC.
2  *
3  * ISAAC is free software: you can redistribute it and/or modify
4  * it under the terms of the GNU Lesser General Public License as
5  * published by the Free Software Foundation, either version 3 of the
6  * License, or (at your option) any later version.
7  *
8  * ISAAC is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public
14  * License along with ISAAC. If not, see <www.gnu.org/licenses/>. */
15 
16 #pragma once
17 #include "Common.hpp"
18 #include "Runable.hpp"
19 #include "ThreadList.hpp"
20 #include "InsituConnector.hpp"
21 #include <memory>
23 
24 #define MAX_SOCKETS 32768
25 
27 {
31 
32 size_t json_load_callback_function (void *buffer, size_t buflen, void *data);
33 
35 {
36  public:
38  errorCode init(int port,std::string interface);
39  errorCode run();
42  int getSockFD();
43  void setExit();
44  private:
45  int nextFreeNumber;
46  int sockfd;
47  volatile bool force_exit;
48 };
ThreadList< InsituConnectorContainer *> insituConnectorList
int errorCode
Definition: Common.hpp:24
size_t json_load_callback_function(void *buffer, size_t buflen, void *data)
struct InsituConnectorContainer_struct InsituConnectorContainer