20 virtual void Open(
const std::string& address, std::uint16_t port,
bool isListener =
false) = 0;
31 virtual void SendTo(
const Bytes& data,
const asio::ip::udp::endpoint& targetEndpoint) = 0;
34 virtual void Close() noexcept = 0;
virtual void Close() noexcept=0
Close the transport.
virtual Bytes SendReceive(const profinet::Bytes &request, std::chrono::milliseconds timeout)=0
virtual Bytes Receive(std::chrono::milliseconds timeout, asio::ip::udp::endpoint &remoteEndpoint)=0
Wait for an incoming byte array and capture the sender's endpoint.
virtual void SendTo(const Bytes &data, const asio::ip::udp::endpoint &targetEndpoint)=0
Send a byte array of data to a specific remote asio endpoint.
virtual void Send(const Bytes &request)=0
virtual void Open(const std::string &address, std::uint16_t port, bool isListener=false)=0
Open the transport and configure the remote endpoint.
virtual ~IRpcTransport()=default
std::vector< std::uint8_t > Bytes
Generic byte buffer alias used throughout the library for raw wire data.
PROFINET protocol wire-format structures and serialization helpers.
asio::ip::udp::endpoint remoteEndpoint