~mordred/gearmand/cancel-job

« back to all changes in this revision

Viewing changes to docs/libgearman/gearman_worker_add_server.rst

  • Committer: Brian Aker
  • Date: 2012-05-04 03:46:04 UTC
  • Revision ID: brian@tangent.org-20120504034604-5t22ae4v2o45zjkq
Update for libtest, documentation, and fix for root bzr dir.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 
11
11
#include <libgearman/gearman.h>
12
12
 
13
 
.. c:function:: gearman_return_t gearman_worker_add_server(gearman_worker_st *worker, const char *host, in_port_t port);
14
 
 
15
 
.. c:function:: gearman_return_t gearman_worker_add_servers(gearman_worker_st *worker, const char *servers);
16
 
 
17
 
.. c:function:: void gearman_worker_remove_servers(gearman_worker_st *worker);
 
13
.. c:function:: gearman_return_t gearman_worker_add_server(gearman_worker_st *worker, const char *host, in_port_t port)
 
14
 
 
15
.. c:function:: gearman_return_t gearman_worker_add_servers(gearman_worker_st *worker, const char *servers)
 
16
 
 
17
.. c:function:: void gearman_worker_remove_servers(gearman_worker_st *worker)
18
18
 
19
19
Link with -lgearman
20
20
 
22
22
DESCRIPTION
23
23
-----------
24
24
 
25
 
:c:func:`gearman_worker_add_server()` will add an additional :program:`gearmand` server to the list of servers that the worker will take work from. 
26
 
 
27
 
:c:func:`gearman_worker_remove_servers()` will remove all servers from the :c:type:`gearman_worker_st`.
28
 
 
29
 
:c:func:`gearman_worker_add_servers()` takes a list of :program:`gearmand` servers that will be parsed to provide servers for the worker. The format for this is SERVER[:PORT][,SERVER[:PORT]]...
 
25
:c:func:`gearman_worker_add_server` will add an additional :program:`gearmand` server to the list of servers that the worker will take work from. 
 
26
 
 
27
:c:func:`gearman_worker_remove_servers` will remove all servers from the :c:type:`gearman_worker_st`.
 
28
 
 
29
:c:func:`gearman_worker_add_servers` takes a list of :program:`gearmand` servers that will be parsed to provide servers for the worker. The format for this is SERVER[:PORT][,SERVER[:PORT]]...
30
30
 
31
31
Examples of this are::
32
32
 
38
38
RETURN VALUE
39
39
------------
40
40
 
41
 
:c:func:`gearman_worker_add_server()` and :c:func:`gearman_worker_remove_servers()` return :c:type:`gearman_return_t`.
 
41
:c:func:`gearman_worker_add_server` and :c:func:`gearman_worker_remove_servers` return :c:type:`gearman_return_t`.
42
42
 
43
43
----
44
44
HOME