MySQL 8.4.0
Source Code Documentation
mysql_harness::SocketOperationsBase Class Referenceabstract

Base class to allow multiple SocketOperations implementations (at least one "real" and one mock for testing purposes) More...

#include <socket_operations.h>

Inheritance diagram for mysql_harness::SocketOperationsBase:
[legend]

Classes

class  LocalHostnameResolutionError
 Exception thrown by get_local_hostname() on error. More...
 

Public Member Functions

 SocketOperationsBase ()=default
 
 SocketOperationsBase (const SocketOperationsBase &)=default
 
SocketOperationsBaseoperator= (const SocketOperationsBase &)=default
 
virtual ~SocketOperationsBase ()=default
 
virtual std::string get_local_hostname ()=0
 return hostname of local host More...
 

Detailed Description

Base class to allow multiple SocketOperations implementations (at least one "real" and one mock for testing purposes)

Constructor & Destructor Documentation

◆ SocketOperationsBase() [1/2]

mysql_harness::SocketOperationsBase::SocketOperationsBase ( )
explicitdefault

◆ SocketOperationsBase() [2/2]

mysql_harness::SocketOperationsBase::SocketOperationsBase ( const SocketOperationsBase )
explicitdefault

◆ ~SocketOperationsBase()

virtual mysql_harness::SocketOperationsBase::~SocketOperationsBase ( )
virtualdefault

Member Function Documentation

◆ get_local_hostname()

virtual std::string mysql_harness::SocketOperationsBase::get_local_hostname ( )
pure virtual

return hostname of local host

Implemented in mysql_harness::SocketOperations.

◆ operator=()

SocketOperationsBase & mysql_harness::SocketOperationsBase::operator= ( const SocketOperationsBase )
default

The documentation for this class was generated from the following file: