4 #ifndef __HARDWARE_UDP_H__
5 #define __HARDWARE_UDP_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;
37 namespace CTA_Slc_Dict {
42 namespace CTA_Hardware {
46 HardWare_UDP(std::string address,
int port, std::string full,
51 int init(std::string name);
55 int set(std::string
value);
56 int set(std::string
value, std::vector<Byte> res) {
60 int set(std::string
value, std::vector<short int> res) {
64 int set(std::string
value, std::vector<int> res) {
68 int set(std::string
value, std::vector<long> res) {
72 int set(std::string
value, std::vector<float> res) {
77 int cmd(std::string value, std::string *retValue);
79 int get(std::string command, std::vector<Byte> *res);
80 int get(std::string command, std::vector<short int> *res);
81 int get(std::string command, std::vector<int> *res);
82 int get(std::string command, std::vector<long> *res);
83 int get(std::string command, std::vector<float> *res);
84 int get(std::string command, std::string *result);
89 int get(std::string command);
90 int setTrame(std::string value, std::string *retValue);
91 int getTrame(std::string value, std::string *retValue);
92 int write(std::string ip,
int port,
char *sendBuffer);
93 void makeArgv(std::string chaine,
int *argc,
char** *argv);
103 std::string m_pullPush;
106 std::string m_data_Type;
107 std::string m_headerId;
114 char recvBuffer[8192];
119 int m_manageInterface;