diff --git a/include/Common.h b/include/Common.h index f7a22de8..9295465a 100644 --- a/include/Common.h +++ b/include/Common.h @@ -226,7 +226,7 @@ typedef enum { } op_code_t; const char* errCodeToString(err_code_t err); -bool isLocalSocket(const char* host); +bool isUnixSocket(const char* host); server_string_split_t splitServerString(char* input); } // namespace mc diff --git a/src/Common.cpp b/src/Common.cpp index 2e75ffca..148bdd92 100644 --- a/src/Common.cpp +++ b/src/Common.cpp @@ -50,9 +50,9 @@ const char* errCodeToString(err_code_t err) { } } -bool isLocalSocket(const char* host) { +bool isUnixSocket(const char* host) { // errors on the side of false negatives, allowing syntax expansion; - // starting slash to denote socket paths is from pylibmc + // starting slash syntax is from libmemcached return host[0] == '/'; } diff --git a/src/Connection.cpp b/src/Connection.cpp index 0b95c8b3..b44c4963 100644 --- a/src/Connection.cpp +++ b/src/Connection.cpp @@ -47,7 +47,7 @@ Connection::~Connection() { int Connection::init(const char* host, uint32_t port, const char* alias) { snprintf(m_host, sizeof m_host, "%s", host); m_port = port; - m_unixSocket = isLocalSocket(m_host); + m_unixSocket = isUnixSocket(m_host); if (alias == NULL) { m_hasAlias = false; if (m_unixSocket) {