1GEARMAN_WORKER_ADD_SERVERS(3)      Gearmand      GEARMAN_WORKER_ADD_SERVERS(3)
2
3
4

NAME

6       gearman_worker_add_servers   -   Gearmand  Documentation,  http://gear
7       man.info/
8

SYNOPSIS

10       #include <libgearman/gearman.h>
11
12       gearman_return_t   gearman_worker_add_server(gearman_worker_st *worker,
13       const char *host, in_port_t port)
14
15       gearman_return_t  gearman_worker_add_servers(gearman_worker_st *worker,
16       const char *servers)
17
18       void gearman_worker_remove_servers(gearman_worker_st *worker)
19
20       Link with -lgearman
21

DESCRIPTION

23       gearman_worker_add_server() will add an additional gearmand  server  to
24       the list of servers that the worker will take work from.
25
26       gearman_worker_remove_servers()  will remove all servers from the gear‐
27       man_worker_st.
28
29       gearman_worker_add_servers() takes a list of gearmand servers that will
30       be  parsed  to  provide  servers for the worker. The format for this is
31       SERVER[:PORT][,SERVER[:PORT]]...
32
33       Examples of this are:
34
35          10.0.0.1,10.0.0.2,10.0.0.3
36          localhost234,jobserver2.domain.com:7003,10.0.0.3
37

RETURN VALUE

39       gearman_worker_add_server() and gearman_worker_remove_servers()  return
40       gearman_return_t.
41

HOME

43       To find out more information please check: http://gearman.info/
44
45       SEE ALSO:
46          gearmand ../libgearman  gearman_worker_st
47

AUTHOR

49       Data Differential http://www.datadifferential.com/
50
52       2011-2014, Data Differential, http://www.datadifferential.com/
53
54
55
56
571.1.19.1                         Feb 18, 2020    GEARMAN_WORKER_ADD_SERVERS(3)
Impressum