Additional fixes/test. We will now limit the hostname when adding it into
[m6w6/libmemcached] / libmemcached / server.h
index 4248e143f7c47e68d0a3c6c82d0a83b2e15458a9..aadd690fe0714e1b72e77b1081c4827ed074ca46 100644 (file)
@@ -96,6 +96,13 @@ LIBMEMCACHED_API
 memcached_return_t memcached_server_add(memcached_st *ptr,
                                         const char *hostname, in_port_t port);
 
+LIBMEMCACHED_LOCAL
+  memcached_return_t memcached_server_add_parsed(memcached_st *ptr,
+                                                 const char *hostname,
+                                                 size_t hostname_length,
+                                                 in_port_t port,
+                                                 uint32_t weight);
+
 LIBMEMCACHED_API
 memcached_return_t memcached_server_add_udp_with_weight(memcached_st *ptr,
                                                         const char *hostname,