4 #ifndef __HARDWARE_TCP_H__
5 #define __HARDWARE_TCP_H__
7 #include "nodemanagerroot.h"
11 #include "statuscode.h"
12 #include "uaarraytemplates.h"
14 #include "nodemanagerbase.h"
16 #include "../socket/socket.h"
20 class ControllerObject;
21 class HardWareInterface;
24 namespace CTA_Hardware {
25 class HardWareInterface;
35 namespace CTA_Slc_Dict {
39 namespace CTA_Hardware {
43 HardWare_TCP(std::string address,
int port, std::string full,
48 int init(std::string name);
50 void getId(std::string *id1, std::string *id2);
53 int set(std::string
value);
54 int set(std::string
value, std::vector<Byte> res) {
58 int set(std::string
value, std::vector<short int> res) {
62 int set(std::string
value, std::vector<int> res) {
66 int set(std::string
value, std::vector<long> res) {
70 int set(std::string
value, std::vector<float> res) ;
72 int get(std::string command, std::vector<Byte> *res);
73 int get(std::string command, std::vector<short int> *res);
74 int get(std::string command, std::vector<int> *res);
75 int get(std::string command, std::vector<long> *res);
76 int get(std::string command, std::vector<float> *res);
78 int cmd(std::string value, std::string *retValue);
79 int get(std::string command, std::string *result);
83 int setTrame(std::string value, std::string *retValue);
84 int getTrame(std::string value, std::string *retValue);
85 void makeArgv(std::string chaine,
int *argc,
char** *argv);
87 int write(std::string ip,
int port,
char *sendBuffer);
88 int get(std::string command);
103 std::string m_pullPush;
106 std::string m_data_Type;
107 std::string m_headerId;
114 char recvBuffer[8192];
118 int m_manageInterface;