Overview
::
Library Doc
::
Server Doc
::
JSON Commands
In Situ Animation of Accelerated Computations
src
InsituConnector.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 "
Runable.hpp
"
18
#include "
MessageAble.hpp
"
19
#include "
ThreadList.hpp
"
20
21
typedef
struct
22
{
23
int
pos
;
24
int
count
;
25
char
buffer[
ISAAC_MAX_RECEIVE
];
26
}
json_load_callback_struct
;
27
28
class
InsituConnector
:
public
MessageAble
<MessageContainer>
29
{
30
friend
class
InsituConnectorMaster
;
31
public
:
32
InsituConnector
(
int
sockfd,
int
id
);
33
~InsituConnector
();
34
int
getID
();
35
int
getSockFD
();
36
private
:
37
json_load_callback_struct
jlcb;
38
int
id;
39
int
sockfd;
40
};
Runable.hpp
InsituConnector::getID
int getID()
Definition:
InsituConnector.cpp:25
ISAAC_MAX_RECEIVE
#define ISAAC_MAX_RECEIVE
Definition:
Common.hpp:26
InsituConnector::getSockFD
int getSockFD()
Definition:
InsituConnector.cpp:30
json_load_callback_struct::count
int count
Definition:
InsituConnector.hpp:24
InsituConnector
Definition:
InsituConnector.hpp:28
InsituConnectorMaster
Definition:
InsituConnectorMaster.hpp:34
InsituConnector::~InsituConnector
~InsituConnector()
Definition:
InsituConnector.cpp:35
ThreadList.hpp
json_load_callback_struct::pos
int pos
Definition:
InsituConnector.hpp:23
InsituConnector::InsituConnector
InsituConnector(int sockfd, int id)
Definition:
InsituConnector.cpp:19
MessageAble.hpp
MessageAble
Definition:
MessageAble.hpp:22
json_load_callback_struct
Definition:
InsituConnector.hpp:21
Generated on Wed Dec 14 2016 16:48:57 for ISAAC Server by
1.8.12