X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Foptions%2Fserver.h;h=2f666f49a044cbb2f07c66925bb271402ef52283;hb=de161b27e5e394ea0ae4a88e58fc9ebb21e821d0;hp=af6e0f3e9d4cde1183bcd5836b8948598b4a01a1;hpb=0d0de3efc1cb8a1cd3e4b9bcc31c329a16dffce5;p=m6w6%2Flibmemcached diff --git a/libmemcached/options/server.h b/libmemcached/options/server.h index af6e0f3e..2f666f49 100644 --- a/libmemcached/options/server.h +++ b/libmemcached/options/server.h @@ -43,14 +43,16 @@ struct server_t { - const char *c_str; - size_t length; in_port_t port; + uint32_t weight; + size_t length; + const char *c_str; }; inline std::ostream& operator<<(std::ostream& output, const server_t& arg) { output.write(arg.c_str, arg.length); output << ':' << arg.port; + output << '+' << arg.weight; return output; }