Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
p
q
r
s
t
u
v
w
x
y
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerations
Enumerator
a
c
d
e
f
i
l
m
n
o
r
t
u
w
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
i
l
m
n
o
p
q
r
s
t
v
Enumerations
Enumerator
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Related Functions
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
y
Variables
_
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
Typedefs
b
c
f
h
i
l
p
r
s
t
u
Enumerations
Enumerator
c
d
e
i
o
p
r
s
t
w
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
test
emulator
include
sick_scan
client_socket.h
Go to the documentation of this file.
1
#include "
sick_scan/sick_scan_base.h
"
/* Base definitions included in all header files, added by add_sick_scan_base_header.py. Do not edit this line. */
2
/*
3
* @brief client_socket encapsulates connecting, closing and setting socket options
4
* for tcp client sockets.
5
*
6
* Copyright (C) 2019 Ing.-Buero Dr. Michael Lehning, Hildesheim
7
* Copyright (C) 2019 SICK AG, Waldkirch
8
*
9
* Licensed under the Apache License, Version 2.0 (the "License");
10
* you may not use this file except in compliance with the License.
11
* You may obtain a copy of the License at
12
*
13
* http://www.apache.org/licenses/LICENSE-2.0
14
*
15
* Unless required by applicable law or agreed to in writing, software
16
* distributed under the License is distributed on an "AS IS" BASIS,
17
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
* See the License for the specific language governing permissions and
19
* limitations under the License.
20
*
21
* All rights reserved.
22
*
23
* Redistribution and use in source and binary forms, with or without
24
* modification, are permitted provided that the following conditions are met:
25
*
26
* * Redistributions of source code must retain the above copyright
27
* notice, this list of conditions and the following disclaimer.
28
* * Redistributions in binary form must reproduce the above copyright
29
* notice, this list of conditions and the following disclaimer in the
30
* documentation and/or other materials provided with the distribution.
31
* * Neither the name of SICK AG nor the names of its
32
* contributors may be used to endorse or promote products derived from
33
* this software without specific prior written permission
34
* * Neither the name of Ing.-Buero Dr. Michael Lehning nor the names of its
35
* contributors may be used to endorse or promote products derived from
36
* this software without specific prior written permission
37
*
38
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
39
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
40
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
41
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
42
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
43
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
44
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
45
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
46
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
47
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
48
* POSSIBILITY OF SUCH DAMAGE.
49
*
50
* Authors:
51
* Michael Lehning <michael.lehning@lehning.de>
52
*
53
* Copyright 2019 SICK AG
54
* Copyright 2019 Ing.-Buero Dr. Michael Lehning
55
*
56
*/
57
#ifndef __SIM_LOC_CLIENT_SOCKET_H_INCLUDED
58
#define __SIM_LOC_CLIENT_SOCKET_H_INCLUDED
59
60
#include "
sick_scan/server_socket.h
"
61
62
namespace
sick_scan_xd
63
{
68
class
ClientSocket
69
{
70
public
:
71
75
ClientSocket
();
76
80
virtual
~ClientSocket
();
81
88
virtual
bool
connect
(
const
std::string & server_address,
int
tcp_port
);
89
96
virtual
bool
close
(
bool
force_shutdown =
false
);
97
102
virtual
socket_t
&
socket
(
void
) {
return
m_tcp_socket
; }
103
104
protected
:
105
106
socket_t
m_tcp_socket
;
107
108
};
// class ClientSocket
109
110
}
// namespace sick_scan_xd
111
#endif // __SIM_LOC_CLIENT_SOCKET_H_INCLUDED
sick_scan_xd::ClientSocket::~ClientSocket
virtual ~ClientSocket()
Definition:
client_socket.cpp:73
sick_scan_xd::ClientSocket
Definition:
client_socket.h:68
socket_t
int32_t socket_t
Definition:
server_socket.h:70
sick_scan_xd::ClientSocket::ClientSocket
ClientSocket()
Definition:
client_socket.cpp:66
sick_scan_xd::ClientSocket::socket
virtual socket_t & socket(void)
Definition:
client_socket.h:102
sick_scan_xd
Definition:
abstract_parser.cpp:65
server_socket.h
sick_scan_xd::ClientSocket::m_tcp_socket
socket_t m_tcp_socket
tcp client socket (int32 or SOCKET)
Definition:
client_socket.h:106
sick_scan_xd::ClientSocket::close
virtual bool close(bool force_shutdown=false)
Definition:
client_socket.cpp:158
test_server.tcp_port
int tcp_port
Definition:
test_server.py:204
sick_scan_base.h
sick_scan_xd::ClientSocket::connect
virtual bool connect(const std::string &server_address, int tcp_port)
Definition:
client_socket.cpp:84
sick_scan_xd
Author(s): Michael Lehning
, Jochen Sprickerhof
, Martin Günther
autogenerated on Fri Oct 25 2024 02:47:07