BAOS SDK v2
1.2.1
An SDK providing access to IP-BAOS devices through BAOS binary protocol version 2.x
Loading...
Searching...
No Matches
IpGeneral.h
Go to the documentation of this file.
1
//
2
// Copyright (c) 2002-2026 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
33
struct
Ip4SocketAddress
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__
wz::baos::ip::Ip4SocketAddress
Represent the pair of IP address as string in the form "10.0.0.1020" and a port.
Definition
IpGeneral.h:34
wz::baos::ip::Ip4SocketAddress::port
std::uint16_t port
The port to use.
Definition
IpGeneral.h:36
wz::baos::ip::Ip4SocketAddress::address
std::string address
IPv4 address as string.
Definition
IpGeneral.h:35
Generated by
1.9.8