X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Foptions%2Fserver.h;h=2f666f49a044cbb2f07c66925bb271402ef52283;hb=ae6bc7501efd5aeaaee92dabe2da0ec2d1625c5b;hp=af6e0f3e9d4cde1183bcd5836b8948598b4a01a1;hpb=3dee67d04099cc5e2986ed94aa612f429f54d6fb;p=awesomized%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; }