1
.TH "GEARMAN_CLIENT_DO_LOW" "3" "December 15, 2011" "0.26" "Gearmand"
3
gearman_client_do_low \- 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 void *gearman_client_do(gearman_client_st\fI\ *client\fP, const char\fI\ *function_name\fP, const char\fI\ *unique\fP, const void\fI\ *workload\fP, size_t\fI\ workload_size\fP, size_t\fI\ *result_size\fP, gearman_return_t *ret_ptr)\fI\ *client\fP)
41
Changed in version 0.21: \fBGEARMAN_PAUSE\fP will no longer be returned. A do operation will now run till completion or error.
44
.B void *gearman_client_do_high(gearman_client_st\fI\ *client\fP, const char\fI\ *function_name\fP, const char\fI\ *unique\fP, const void\fI\ *workload\fP, size_t\fI\ workload_size\fP, size_t\fI\ *result_size\fP, gearman_return_t\fI\ *ret_ptr\fP)
48
.B void *gearman_client_do_low(gearman_client_st\fI\ *client\fP, const char\fI\ *function_name\fP, const char\fI\ *unique\fP, const void\fI\ *workload\fP, size_t\fI\ workload_size\fP, size_t\fI\ *result_size\fP, gearman_return_t\fI\ *ret_ptr\fP)
52
\fI\%gearman_client_do()\fP executes a single request to the gearmand
53
server and waits for a reply.
55
\fI\%gearman_client_do_high()\fP and \fI\%gearman_client_do_low()\fP are
56
identical to \fI\%gearman_client_do()\fP, only they set the priority to
59
All of the functions will block until either a response or an error is
63
\fI\%gearman_client_do()\fP returns a pointer to a value that the caller must release. If ret_ptr is provided any errors that have occurred will be stored in it. Since a NULL/zero value is a valid value, you will always need to check ret_ptr if you are concerned with errors.
70
#include <libgearman/gearman.h>
74
gearman_client_st *client= gearman_client_create(NULL);
76
gearman_return_t ret= gearman_client_add_server(client, "localhost", 0);
77
if (gearman_failed(ret))
84
void *value= gearman_client_do(client, "reverse_function", "unique_value",
85
"my string to reverse", strlen("my string to reverse"),
88
if (gearman_success(rc))
94
gearman_client_free(client);
103
To find out more information please check:
104
\fI\%http://gearman.info/\fP
107
\fIgearmand(8)\fP \fIlibgearman(3)\fP \fIgearman_strerror(3)\fP
110
Data Differential http://datadifferential.com/
112
2011, Data Differential, http://datadifferential.com/
113
.\" Generated by docutils manpage writer.