1..::docs::memcached_server_st(3) libmemcached ..::docs::memcached_server_st(3)
2
3
4

NAME

6       memcached_server_list_free, memcached_server_list_append,
7       memcached_server_list_count, memcached_servers_parse - Manage server
8       list
9

LIBRARY

11       C Client Library for memcached (libmemcached, -lmemcached)
12

SYNOPSIS

14         #include <memcached.h>
15
16         void memcached_server_list_free (memcached_server_st *ptr);
17
18         memcached_server_st *
19           memcached_server_list_append (memcached_server_st *ptr,
20                                         const char *hostname,
21                                         unsigned int port,
22                                         memcached_return *error);
23
24         unsigned int memcached_server_list_count (memcached_server_st *ptr);
25
26         memcached_server_st *memcached_servers_parse (const char *server_strings);
27

DESCRIPTION

29       libmemcached(3) operates on a list of hosts which are stored in
30       memcached_server_st structures. You should not modify these structures
31       directly. Functions are provided to modify these structures (and more
32       can be added, just ask!).
33
34       memcached_server_list_free() deallocates all memory associated with the
35       array of memcached_server_st that you passed to it.
36
37       memcached_server_list_append() adds a server to the end of a
38       memcached_server_st array. On error null will be returned and the
39       memcached_return pointer you passed into the function will be set with
40       the appropriate error. If the value of port is zero, it is set to the
41       default port of a memcached server.
42
43       memcached_servers_parse() takes a string, the type that is used for the
44       command line applications, and parse it to an array of
45       memcached_server_st.  The example is "localhost, foo:555, foo, bar".
46       All hosts except foo:555 will be set to the default port, while that
47       host will have a port of 555.
48

RETURN

50       Varies, see particular functions.
51

HOME

53       To find out more information please check:
54       <http://tangent.org/552/libmemcached.html>
55

AUTHOR

57       Brian Aker, <brian@tangent.org>
58

SEE ALSO

60       memcached(1) libmemcached(3) memcached_strerror(3)
61
62
63
64                                  2009-05-20  ..::docs::memcached_server_st(3)
Impressum