Example Client Using Callbacks. More...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <libgearman/gearman.h>
Go to the source code of this file.
Defines | |
#define | REVERSE_TASKS 10 |
Functions | |
static gearman_return_t | created (gearman_task_st *task) |
static gearman_return_t | data (gearman_task_st *task) |
static gearman_return_t | status (gearman_task_st *task) |
static gearman_return_t | complete (gearman_task_st *task) |
static gearman_return_t | fail (gearman_task_st *task) |
static void | usage (char *name) |
int | main (int argc, char *argv[]) |
Example Client Using Callbacks.
Definition in file reverse_client_cb.c.
#define REVERSE_TASKS 10 |
Definition at line 21 of file reverse_client_cb.c.
static gearman_return_t created | ( | gearman_task_st * | task | ) | [static] |
Definition at line 107 of file reverse_client_cb.c.
static gearman_return_t data | ( | gearman_task_st * | task | ) | [static] |
Definition at line 114 of file reverse_client_cb.c.
static gearman_return_t status | ( | gearman_task_st * | task | ) | [static] |
Definition at line 121 of file reverse_client_cb.c.
static gearman_return_t complete | ( | gearman_task_st * | task | ) | [static] |
Definition at line 128 of file reverse_client_cb.c.
static gearman_return_t fail | ( | gearman_task_st * | task | ) | [static] |
Definition at line 135 of file reverse_client_cb.c.
static void usage | ( | char * | name | ) | [static] |
Definition at line 141 of file reverse_client_cb.c.
int main | ( | int | argc, | |
char * | argv[] | |||
) |
Definition at line 31 of file reverse_client_cb.c.