1gearman_worker_add_server(3) Gearman gearman_worker_add_server(3)
2
3
4
6 gearman_worker_add_server - Worker Declarations
7
9 #include <libgearman/gearman.h>
10
11 gearman_return_t gearman_worker_add_server(gearman_worker_st *worker,
12 const char *host, in_port_t port);
13
15 Add a job server to a worker. This goes into a list of servers that can
16 be used to run tasks. No socket I/O happens here, it is just added to a
17 list. *
18
20 [in] worker Structure previously initialized with gear‐
21 man_worker_create() or gearman_worker_clone().
22
23 [in] host Hostname or IP address (IPv4 or IPv6) of the server to
24 add.
25
26 [in] port Port of the server to add.
27
29 Standard gearman return value.
30
32 The Gearman homepage: http://www.gearman.org/
33
35 Bugs should be reported at https://bugs.launchpad.net/gearmand
36
38 Copyright (C) 2008 Brian Aker, Eric Day. All rights reserved.
39
40 Use and distribution licensed under the BSD license. See the COPYING
41 file in the original source for full text.
42
43
44
45Gearman 2010-03-15 gearman_worker_add_server(3)