...
This commit is contained in:
@@ -67,7 +67,7 @@ static constexpr bool mcc_char_range_compare(const traits::mcc_char_view auto& w
|
||||
*/
|
||||
|
||||
|
||||
class MccServerEndpoint
|
||||
class MccNetServerEndpoint
|
||||
{
|
||||
public:
|
||||
static constexpr std::string_view protoHostDelim = "://";
|
||||
@@ -99,25 +99,25 @@ public:
|
||||
|
||||
|
||||
template <traits::mcc_input_char_range R>
|
||||
MccServerEndpoint(const R& ept)
|
||||
MccNetServerEndpoint(const R& ept)
|
||||
{
|
||||
fromRange(ept);
|
||||
}
|
||||
|
||||
MccServerEndpoint(const MccServerEndpoint& other)
|
||||
MccNetServerEndpoint(const MccNetServerEndpoint& other)
|
||||
{
|
||||
copyInst(other);
|
||||
}
|
||||
|
||||
MccServerEndpoint(MccServerEndpoint&& other)
|
||||
MccNetServerEndpoint(MccNetServerEndpoint&& other)
|
||||
{
|
||||
moveInst(std::move(other));
|
||||
}
|
||||
|
||||
virtual ~MccServerEndpoint() = default;
|
||||
virtual ~MccNetServerEndpoint() = default;
|
||||
|
||||
|
||||
MccServerEndpoint& operator=(const MccServerEndpoint& other)
|
||||
MccNetServerEndpoint& operator=(const MccNetServerEndpoint& other)
|
||||
{
|
||||
copyInst(other);
|
||||
|
||||
@@ -125,7 +125,7 @@ public:
|
||||
}
|
||||
|
||||
|
||||
MccServerEndpoint& operator=(MccServerEndpoint&& other)
|
||||
MccNetServerEndpoint& operator=(MccNetServerEndpoint&& other)
|
||||
{
|
||||
moveInst(std::move(other));
|
||||
|
||||
@@ -358,7 +358,7 @@ public:
|
||||
// add '\0' char (or replace special-meaning char/char-sequence) to construct UNIX abstract namespace
|
||||
// endpoint path
|
||||
template <typename T = std::nullptr_t>
|
||||
MccServerEndpoint& makeAbstract(const T& mark = nullptr)
|
||||
MccNetServerEndpoint& makeAbstract(const T& mark = nullptr)
|
||||
requires(traits::mcc_input_char_range<T> || std::same_as<std::remove_cv_t<T>, char> ||
|
||||
std::is_null_pointer_v<std::remove_cv_t<T>>)
|
||||
{
|
||||
@@ -397,7 +397,7 @@ protected:
|
||||
ssize_t idx = 0;
|
||||
|
||||
// case-insensitive look-up
|
||||
bool found = std::ranges::any_of(MccServerEndpoint::validProtoMarks, [&idx, &proto_mark](const auto& el) {
|
||||
bool found = std::ranges::any_of(MccNetServerEndpoint::validProtoMarks, [&idx, &proto_mark](const auto& el) {
|
||||
bool ok = utils::mcc_char_range_compare(proto_mark, el, true);
|
||||
|
||||
if (!ok) {
|
||||
@@ -449,7 +449,7 @@ protected:
|
||||
return res;
|
||||
}
|
||||
|
||||
void copyInst(const MccServerEndpoint& other)
|
||||
void copyInst(const MccNetServerEndpoint& other)
|
||||
{
|
||||
if (&other != this) {
|
||||
if (other._isValid) {
|
||||
@@ -485,7 +485,7 @@ protected:
|
||||
}
|
||||
|
||||
|
||||
void moveInst(MccServerEndpoint&& other)
|
||||
void moveInst(MccNetServerEndpoint&& other)
|
||||
{
|
||||
if (&other != this) {
|
||||
if (other._isValid) {
|
||||
|
||||
Reference in New Issue
Block a user