BAOS SDK v2  1.0.1
An SDK providing access to IP-BAOS devices through BAOS binary protocol version 2.x
IpGeneral.h
Go to the documentation of this file.
1 //
2 // Copyright (c) 2002-2020 WEINZIERL ENGINEERING GmbH
3 // All rights reserved.
4 //
5 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
6 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
7 // FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
8 // SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY,
9 // WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
10 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
11 //
12 
13 #ifndef __BAOSLIB_IP_GENERAL_H__
14 #define __BAOSLIB_IP_GENERAL_H__
15 
16 #include "baos/BaosLib_export.h"
17 
19 #include <cstdint>
20 #include <string>
21 #include <vector>
23 
29 namespace wz::baos::ip
30 {
31 
34 {
35  std::string address;
36  std::uint16_t port{0};
37 };
38 
39 
40 } // namespace wz::baos::ip
41 
42 #endif // __BAOSLIB_IP_GENERAL_H__
Represent the pair of IP address as string in the form "10.0.0.1020" and a port.
Definition: IpGeneral.h:34
std::uint16_t port
The port to use.
Definition: IpGeneral.h:36
std::string address
IPv4 address as string.
Definition: IpGeneral.h:35