X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=test%2Flib%2FConnection.hpp;h=bcb78e4a9bf18e7a6005c89dd31e37bf94a4f568;hb=f5899224fbd4475ac3c5c499b1681da304e0d011;hp=8571759eb2a8b0857701043e5735f5660dc8159f;hpb=9f262c9ea92d4869715ca6f534c80075a8310ac1;p=awesomized%2Flibmemcached diff --git a/test/lib/Connection.hpp b/test/lib/Connection.hpp index 8571759e..bcb78e4a 100644 --- a/test/lib/Connection.hpp +++ b/test/lib/Connection.hpp @@ -1,8 +1,24 @@ +/* + +--------------------------------------------------------------------+ + | libmemcached - C/C++ Client Library for memcached | + +--------------------------------------------------------------------+ + | Redistribution and use in source and binary forms, with or without | + | modification, are permitted under the terms of the BSD license. | + | You should have received a copy of the license in a bundled file | + | named LICENSE; in case you did not receive a copy you can review | + | the terms online at: https://opensource.org/licenses/BSD-3-Clause | + +--------------------------------------------------------------------+ + | Copyright (c) 2006-2014 Brian Aker https://datadifferential.com/ | + | Copyright (c) 2020 Michael Wallner | + +--------------------------------------------------------------------+ +*/ + #pragma once #include "common.hpp" #include +#include #include class Connection { @@ -14,10 +30,10 @@ public: void swap(Connection &conn); Connection(const Connection &conn); - Connection &operator = (const Connection &conn); + Connection &operator=(const Connection &conn); - Connection(Connection &&conn) noexcept ; - Connection &operator = (Connection &&conn) noexcept ; + Connection(Connection &&conn) noexcept; + Connection &operator=(Connection &&conn) noexcept; int getError(); int getLastError(); @@ -36,7 +52,7 @@ private: UNIX = sizeof(sockaddr_un), INET = sizeof(sockaddr_in), INET6 = sizeof(sockaddr_in6) - } size; + } size = NONE; bool connected{false}; static string error(const initializer_list &args);