X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Foptions%2Fserver.h;h=d86ad39a31ebc3af10bf9d18fc04e3176eabf826;hb=5ba03c8cc82605f0eb171d547876fb6cbed70a76;hp=af6e0f3e9d4cde1183bcd5836b8948598b4a01a1;hpb=3dee67d04099cc5e2986ed94aa612f429f54d6fb;p=m6w6%2Flibmemcached diff --git a/libmemcached/options/server.h b/libmemcached/options/server.h index af6e0f3e..d86ad39a 100644 --- a/libmemcached/options/server.h +++ b/libmemcached/options/server.h @@ -38,19 +38,23 @@ #pragma once #include -#include #include struct server_t { - const char *c_str; - size_t length; in_port_t port; + uint32_t weight; + const char *c_str; + size_t size; }; +#if 0 +#include inline std::ostream& operator<<(std::ostream& output, const server_t& arg) { - output.write(arg.c_str, arg.length); + output.write(arg.c_str, arg.size); output << ':' << arg.port; + output << '+' << arg.weight; return output; } +#endif