8#ifndef BOTAN_SOCKET_UDP_H_
9#define BOTAN_SOCKET_UDP_H_
11#include <botan/types.h>
39 virtual void write(
const uint8_t buf[],
size_t len) = 0;
45 virtual size_t read(uint8_t buf[],
size_t len) = 0;
53 std::string_view service,
54 std::chrono::microseconds timeout);
virtual ~SocketUDP()=default
virtual size_t read(uint8_t buf[], size_t len)=0
virtual void write(const uint8_t buf[], size_t len)=0
std::unique_ptr< SocketUDP > BOTAN_TEST_API open_socket_udp(std::string_view hostname, std::string_view service, std::chrono::microseconds timeout)