1
.TH "GEARMAN_WORKER_ADD_SERVER" "3" "December 15, 2011" "0.26" "Gearmand"
3
gearman_worker_add_server \- Gearmand Documentation, http://gearman.info/
5
.nr rst2man-indent-level 0
9
level \\n[rst2man-indent-level]
10
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
17
.\" .rstReportMargin pre:
19
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
20
. nr rst2man-indent-level +1
21
.\" .rstReportMargin post:
25
.\" indent \\n[an-margin]
26
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
27
.nr rst2man-indent-level -1
28
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
29
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
31
.\" Man page generated from reStructeredText.
35
#include <libgearman/gearman.h>
38
.B gearman_return_t gearman_worker_add_server(gearman_worker_st *worker, const char *host, in_port_t port);
42
.B gearman_return_t gearman_worker_add_servers(gearman_worker_st *worker, const char *servers);
46
.B void gearman_worker_remove_servers(gearman_worker_st *worker);
52
\fBgearman_worker_add_server()\fP will add an additional \fBgearmand\fP server to the list of servers that the worker will take work from.
54
\fBgearman_worker_remove_servers()\fP will remove all servers from the \fBgearman_worker_st\fP.
56
\fBgearman_worker_add_servers()\fP takes a list of \fBgearmand\fP servers that will be parsed to provide servers for the worker. The format for this is SERVER[:PORT][,SERVER[:PORT]]...
62
10.0.0.1,10.0.0.2,10.0.0.3
63
localhost234,jobserver2.domain.com:7003,10.0.0.3
68
\fBgearman_worker_add_server()\fP and \fBgearman_worker_remove_servers()\fP return \fBgearman_return_t\fP.
71
To find out more information please check:
72
\fI\%http://gearman.info/\fP
75
\fBgearmand\fP \fB../libgearman\fP \fBgearman_worker_st\fP
78
Data Differential http://datadifferential.com/
80
2011, Data Differential, http://datadifferential.com/
81
.\" Generated by docutils manpage writer.