protocol_info.h
Go to the documentation of this file.
1 // Copyright (c) 2014, Pepperl+Fuchs GmbH, Mannheim
2 // Copyright (c) 2014, Denis Dillenberger
3 // All rights reserved.
4 //
5 // Use, modification, and distribution is subject to the
6 // 3-clause BSD license ("Revised BSD License",
7 // "New BSD License", or "Modified BSD License")
8 // You should have received a copy of this license
9 // in a file named COPYING or LICENSE.
10 
11 #ifndef PROTOCOL_INFO_H
12 #define PROTOCOL_INFO_H
13 #include <vector>
14 
15 namespace pepperl_fuchs {
16 
20 {
22  std::string protocol_name;
23 
26 
29 
31  std::vector< std::string > commands;
32 };
33 
36 struct HandleInfo
37 {
38  static const int HANDLE_TYPE_TCP = 0;
39  static const int HANDLE_TYPE_UDP = 1;
40 
45 
47  std::string hostname;
48 
52  int port;
53 
55  std::string handle;
56 
59 
62 
65 
68 };
69 }
70 
71 #endif // PROTOCOL_INFO_H
bool watchdog_enabled
If watchdog is enabled, it has to be fed otherwise scanner closes the connection after timeout...
Definition: protocol_info.h:64
std::string handle
Handle ID.
Definition: protocol_info.h:55
std::vector< std::string > commands
List of available commands.
Definition: protocol_info.h:31
Information about the HTTP/JSON protocol.
Definition: protocol_info.h:19
char packet_type
Packet type, possible values are A,B or C.
Definition: protocol_info.h:58
std::string hostname
UDP Handle: IP at client side where scanner data is sent to.
Definition: protocol_info.h:47
int version_minor
Minor version of protocol.
Definition: protocol_info.h:28
int start_angle
Start angle of scan in 1/10000°, defaults to -1800000.
Definition: protocol_info.h:61
Encapsulates data about an etablished data connection.
Definition: protocol_info.h:36
int watchdog_timeout
Watchdog timeout in ms.
Definition: protocol_info.h:67
std::string protocol_name
protocol name, defaults to "pfsdp"
Definition: protocol_info.h:22
int version_major
Major version of protocol.
Definition: protocol_info.h:25


pepperl_fuchs_r2000
Author(s): Denis Dillenberger
autogenerated on Mon Jun 10 2019 14:12:48