YARP
Yet Another Robot Platform
TcpConnector.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3
* Copyright (C) 2010 Anne van Rossum <anne@almende.com>
4
* All rights reserved.
5
*
6
* This software may be modified and distributed under the terms of the
7
* BSD-3-Clause license. See the accompanying LICENSE file for details.
8
*/
9
10
#ifndef YARP_OS_IMPL_POSIX_TCPCONNECTOR_H
11
#define YARP_OS_IMPL_POSIX_TCPCONNECTOR_H
12
13
#include <
yarp/os/Contact.h
>
14
#include <
yarp/os/impl/PlatformTime.h
>
15
#include <
yarp/os/impl/posix/TcpStream.h
>
16
17
18
namespace
yarp
{
19
namespace
os {
20
namespace
impl {
21
namespace
posix {
22
23
24
/* **************************************************************************************
25
* Interface of TcpConnector
26
* **************************************************************************************/
27
28
class
TcpConnector
29
{
30
public
:
34
TcpConnector
();
35
39
virtual
~TcpConnector
();
40
41
int
connect
(
TcpStream
&new_stream,
42
const
yarp::os::Contact
&remote_address,
43
YARP_timeval
* timeout =
nullptr
);
44
protected
:
45
46
int
open
(
TcpStream
&stream);
47
private
:
48
49
};
50
51
}
// namespace posix
52
}
// namespace impl
53
}
// namespace os
54
}
// namespace yarp
55
56
57
#endif // YARP_OS_IMPL_POSIX_TCPCONNECTOR_H
yarp::os::impl::posix::TcpConnector::open
int open(TcpStream &stream)
Definition:
TcpConnector.cpp:40
yarp::os::impl::posix::TcpConnector::TcpConnector
TcpConnector()
Constructor TcpConnector.
yarp::os::impl::posix::TcpConnector
Definition:
TcpConnector.h:29
yarp::os::impl::posix::TcpConnector::connect
int connect(TcpStream &new_stream, const yarp::os::Contact &remote_address, YARP_timeval *timeout=nullptr)
Connect to server.
Definition:
TcpConnector.cpp:51
yarp::os::impl::posix::TcpConnector::~TcpConnector
virtual ~TcpConnector()
Destructor ~TcpConnector.
yarp::os::impl::YARP_timeval
struct timeval YARP_timeval
Definition:
PlatformTime.h:35
yarp
The main, catch-all namespace for YARP.
Definition:
environment.h:18
yarp::os::impl::posix::TcpStream
Definition:
TcpStream.h:34
yarp::os::Contact
Represents how to reach a part of a YARP network.
Definition:
Contact.h:39
Contact.h
PlatformTime.h
TcpStream.h
YARP
3.4.100+20201223.2+gitb8ea4d712
src
libYARP_os
src
yarp
os
impl
posix
TcpConnector.h
Generated on Sun Jan 3 2021 02:46:24 for YARP by
1.8.20