1 .TH "MEMCACHED_SERVERS_PARSE" "3" "September 16, 2012" "1.0.10" "libmemcached"
3 memcached_servers_parse \- libmemcached Documentation
5 .nr rst2man-indent-level 0
9 level \\n[rst2man-indent-level]
10 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
17 .\" .rstReportMargin pre:
19 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
20 . nr rst2man-indent-level +1
21 .\" .rstReportMargin post:
25 .\" indent \\n[an-margin]
26 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
27 .nr rst2man-indent-level -1
28 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
29 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
31 .\" Man page generated from reStructeredText.
35 #include <libmemcached/memcached.h>
38 .B memcached_server_instance_st
42 .B memcached_server_list_st
46 .B memcached_server_st
50 .B const \fI\%memcached_server_instance_st\fP memcached_server_list(memcached_st\fI\ *ptr\fP)
54 .B void memcached_server_list_free(\fI\%memcached_server_list_st\fP\fI\ list\fP)
58 .B \fI\%memcached_server_list_st\fP memcached_server_list_append(\fI\%memcached_server_list_st\fP\fI\ list\fP, const char\fI\ *hostname\fP, in_port_t\fI\ port\fP, memcached_return_t\fI\ *error\fP)
62 .B uint32_t memcached_server_list_count(\fI\%memcached_server_list_st\fP\fI\ list\fP)
66 .B const char *memcached_server_error(\fI\%memcached_server_instance_st\fP\fI\ instance\fP)
70 .B void memcached_server_error_reset(\fI\%memcached_server_instance_st\fP\fI\ list\fP)
73 Deprecated since version 0.39.
76 .B void memcached_servers_parse()
79 Deprecated since version 0.39.
81 Compile and link with \-lmemcached
84 libmemcached(3) operates on a list of hosts which are stored in
85 \fI\%memcached_server_st\fP structures. You should not modify these structures
86 directly. Functions are provided to modify these structures (and more can be
89 \fI\%memcached_server_list()\fP is used to provide an array of all defined hosts. This was incorrectly documented as "requiring free" up till version 0.39.
91 \fI\%memcached_server_list_free()\fP deallocates all memory associated with the array of \fI\%memcached_server_st\fP that you passed to it.
93 \fI\%memcached_server_list_append()\fP adds a server to the end of a
94 \fI\%memcached_server_st\fP array. On error null will be returned and the
95 \fBmemcached_return_t\fP pointer you passed into the function will be set with the appropriate error. If the value of port is zero, it is set to the default
96 port of a memcached server.
98 DEPRECATED \fI\%memcached_servers_parse()\fP, please see \fBmemcached()\fP
100 \fI\%memcached_server_error()\fP can be used to look at the text of the last error message sent by the server to to the client.
102 Before version 0.39 theses functions used a memcache_server_st *. In 0.39
103 memcached_server_st * was aliased to \fI\%memcached_server_list_st\fP. This was done for a style reason to help clean up some concepts in the code.
106 Varies, see particular functions.
109 To find out more information please check:
110 \fI\%http://libmemcached.org/\fP
113 \fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP
117 2011-2012, Brian Aker DataDifferential, http://datadifferential.com/
118 .\" Generated by docutils manpage writer.