...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
(EXPERIMENTAL) A server address, identifying how to physically connect to a MySQL server.
Defined in header <boost/mysql/any_address.hpp>
class any_address
Name |
Description |
---|---|
any_address [constructor] |
Constructs an empty address. |
Replaces the current object with a host and port. |
|
Replaces the current object with a UNIX socket path. |
|
Retrieves the hostname that this object contains. |
|
Copy assignment. |
|
Tests for equality. |
|
Tests for inequality. |
|
Retrieves the port that this object contains. |
|
Retrieves the type of address that this object contains. |
|
Retrieves the UNIX socket path that this object contains. |
|
~any_address [destructor] |
Destructor. |
A variant-like type that can represent the network address of a MySQL server, regardless of the transport type being used. It can contain either a host and port (to connect using TCP) or a UNIX path (to connect using UNIX domain sockets).
This class may be extended in the future to accomodate Windows named pipes.
This type has value semantics: it is owning and regular.