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::milliseconds timeout);
virtual size_t read(uint8_t buf[], size_t len)=0
virtual ~Socket()=default
virtual void write(const uint8_t buf[], size_t len)=0
std::unique_ptr< Socket > BOTAN_TEST_API open_socket(std::string_view hostname, std::string_view service, std::chrono::milliseconds timeout)