include
sick_safevisionary_base
ITransport.h
Go to the documentation of this file.
1
// -- BEGIN LICENSE BLOCK ----------------------------------------------
20
// -- END LICENSE BLOCK ------------------------------------------------
21
22
#pragma once
23
24
#include <cstddef>
25
#include <cstdint>
26
#include <string>
27
#include <vector>
28
29
namespace
visionary
{
30
31
class
ITransport
32
{
33
public
:
34
virtual
~ITransport
(){};
// destructor, use it to call destructor of the inherit classes
35
43
virtual
int
send
(
const
std::vector<std::uint8_t>& buffer) = 0;
44
53
virtual
int
recv
(std::vector<std::uint8_t>& buffer, std::size_t maxBytesToReceive) = 0;
54
63
virtual
int
read
(std::vector<std::uint8_t>& buffer, std::size_t nBytesToReceive) = 0;
64
};
65
66
}
// namespace visionary
visionary::ITransport::~ITransport
virtual ~ITransport()
Definition:
ITransport.h:34
visionary::ITransport::send
virtual int send(const std::vector< std::uint8_t > &buffer)=0
visionary::ITransport::read
virtual int read(std::vector< std::uint8_t > &buffer, std::size_t nBytesToReceive)=0
visionary
Definition:
AuthenticationLegacy.h:25
visionary::ITransport::recv
virtual int recv(std::vector< std::uint8_t > &buffer, std::size_t maxBytesToReceive)=0
visionary::ITransport
Definition:
ITransport.h:31
sick_safevisionary_base
Author(s):
autogenerated on Sat Oct 21 2023 02:24:26