1
.TH "GEARMAN_CLIENT_CREATE" "3" "September 14, 2012" "0.38" "Gearmand"
3
gearman_client_create \- 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_client_st *gearman_client_create(gearman_client_st\fI\ *client\fP)
42
.B gearman_client_st *gearman_client_clone(gearman_client_st\fI\ *client\fP, const gearman_client_st\fI\ *from\fP)
46
.B void gearman_client_free(gearman_client_st\fI\ *client\fP)
52
\fI\%gearman_client_create()\fP is used to create a c:type:\fIgearman_client_st\fP structure that will then
53
be used by other libgearman client functions to communicate with the server. You
54
should either pass a statically declared \fBgearman_client_st\fP to \fI\%gearman_client_create()\fP or
55
a NULL. If a NULL passed in then a structure is allocated for you.
57
\fI\%gearman_client_clone()\fP is similar to \fI\%gearman_client_create()\fP but it copies the
58
defaults and list of servers from the source \fBgearman_client_st\fP . If you pass a null as
59
the argument for the source to clone, it is the same as a call to gearman_client_create.
60
If the destination argument is NULL a \fBgearman_client_st\fP will be allocated for you.
62
To clean up memory associated with a \fBgearman_client_st\fP structure you should pass
63
it to gearman_client_free when you are finished using it. \fI\%gearman_client_free()\fP is
64
the only way to make sure all memory is deallocated when you finish using
67
You may wish to avoid using \fI\%gearman_client_create()\fP or \fI\%gearman_client_clone()\fP with a
68
stack based allocation, ie the first parameter. The most common issues related to ABI safety involve
69
stack allocated structures.
73
\fI\%gearman_client_create\fP returns a pointer to the gearman_client_st
74
that was created (or initialized). On an allocation failure, it returns
77
\fI\%gearman_client_clone\fP returns a pointer to the gearman_client_st that was created
78
(or initialized). On an allocation failure, it returns NULL.
81
To find out more information please check:
82
\fI\%http://gearman.info/\fP
85
\fIgearmand(8)\fP \fIlibgearman(3)\fP \fIgearman_strerror(3)\fP \fIgearman_client_st(3)\fP
88
Data Differential http://www.datadifferential.com/
90
2012, Data Differential, http://www.datadifferential.com/
91
.\" Generated by docutils manpage writer.