26#ifndef MYSQL_HARNESS_SOCKETOPERATIONS_INCLUDED
27#define MYSQL_HARNESS_SOCKETOPERATIONS_INCLUDED
31#include <system_error>
33#include "harness_export.h"
54 using std::runtime_error::runtime_error;
74 std::string get_local_hostname()
override;
Exception thrown by get_local_hostname() on error.
Definition: socket_operations.h:53
Base class to allow multiple SocketOperations implementations (at least one "real" and one mock for t...
Definition: socket_operations.h:45
virtual ~SocketOperationsBase()=default
virtual std::string get_local_hostname()=0
return hostname of local host
SocketOperationsBase & operator=(const SocketOperationsBase &)=default
SocketOperationsBase()=default
SocketOperationsBase(const SocketOperationsBase &)=default
This class provides a "real" (not mock) implementation.
Definition: socket_operations.h:64
SocketOperations()=default
SocketOperations(const SocketOperations &)=delete
SocketOperations operator=(const SocketOperations &)=delete
net::impl::socket::native_handle_type socket_t
Definition: socket_operations.h:38
constexpr socket_t kInvalidSocket
Definition: socket_operations.h:39
int native_handle_type
Definition: socket_constants.h:51
constexpr const native_handle_type kInvalidSocket
Definition: socket_constants.h:52