1MEMCACHED_SERVERS_PARSE(3)       libmemcached       MEMCACHED_SERVERS_PARSE(3)
2
3
4

NAME

6       memcached_servers_parse - libmemcached Documentation
7

SYNOPSIS

9       #include <libmemcached/memcached.h>
10
11       const memcached_instance_st *
12
13       memcached_server_list_st
14
15       memcached_server_st
16
17       const    const   memcached_instance_st   *   memcached_server_list(mem‐
18       cached_st *ptr)
19
20       void memcached_server_list_free(memcached_server_list_st list)
21
22       memcached_server_list_st                 memcached_server_list_append(‐
23       memcached_server_list_st list,  const  char *hostname,  in_port_t port,
24       memcached_return_t *error)
25
26       uint32_t memcached_server_list_count(memcached_server_list_st list)
27
28       const    char    *memcached_server_error(const    memcached_instance_st
29       * instance)
30
31       void memcached_server_error_reset(const memcached_instance_st * list)
32
33       Deprecated since version 0.39.
34
35       void memcached_servers_parse()
36
37       Deprecated since version 0.39.
38
39       Compile and link with -lmemcached
40

DESCRIPTION

42       libmemcached(3)  operates  on  a  list  of  hosts  which  are stored in
43       memcached_server_st structures. You should not modify these  structures
44       directly.  Functions  are provided to modify these structures (and more
45       can be added, just ask!).
46
47       memcached_server_list() is used to provide  an  array  of  all  defined
48       hosts. This was incorrectly documented as "requiring free" up till ver‐
49       sion 0.39.
50
51       memcached_server_list_free() deallocates all memory associated with the
52       array of memcached_server_st that you passed to it.
53
54       memcached_server_list_append()   adds   a   server  to  the  end  of  a
55       memcached_server_st array. On error null will be returned and the  mem‐
56       cached_return_t  pointer  you passed into the function will be set with
57       the appropriate error. If the value of port is zero, it is set  to  the
58       default port of a memcached server.
59
60       DEPRECATED memcached_servers_parse(), please see memcached()
61
62       memcached_server_error()  can  be  used to look at the text of the last
63       error message sent by the server to to the client.
64
65       Before version 0.39 theses functions used a  memcache_server_st  *.  In
66       0.39  memcached_server_st  *  was  aliased to memcached_server_list_st.
67       This was done for a style reason to help clean up some concepts in  the
68       code.
69

RETURN

71       Varies, see particular functions.
72

HOME

74       To find out more information please check: http://libmemcached.org/
75

SEE ALSO

77       memcached(1) libmemcached(3) memcached_strerror(3)
78

AUTHOR

80       Brian Aker
81
83       2011-2013, Brian Aker DataDifferential, http://datadifferential.com/
84
85
86
87
881.0.18                         February 09, 2014    MEMCACHED_SERVERS_PARSE(3)
Impressum