Merge in additional work to handle "weight" for servers.
[m6w6/libmemcached] / libmemcached / options / server.h
index af6e0f3e9d4cde1183bcd5836b8948598b4a01a1..2f666f49a044cbb2f07c66925bb271402ef52283 100644 (file)
 
 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;
 }