1
====================================
2
Disconnecting a client from a server
3
====================================
10
#include <libmemcached/memcached.h>
12
.. c:function:: void memcached_quit (memcached_st *ptr);
14
Compile and link with -lmemcached
21
memcached_quit() will disconnect you from all currently connected servers.
22
It will also reset the state of the connection (ie, any memcached_fetch() you
23
are in the middle of will be terminated). This function is called
24
automatically when you call memcached_free() on the \ ``memcached_st``\ structure.
26
You do not need to call this on your own. All operations to change server
27
hashes and parameters will handle connections to the server for you. This
28
function is provided mainly so that you can timeout your connections or
29
reset connections during the middle of a memcached_fetch().
37
A value of type \ ``memcached_return``\ is returned
38
On success that value will be \ ``MEMCACHED_SUCCESS``\ .
39
Use memcached_strerror() to translate this value to a printable string.
47
To find out more information please check:
48
`https://launchpad.net/libmemcached <https://launchpad.net/libmemcached>`_
56
Brian Aker, <brian@tangent.org>
63
:manpage:`memcached(1)` :manpage:`libmemcached(3)` :manpage:`memcached_strerror(3)`