Example Worker. More...
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <libgearman/gearman.h>
Go to the source code of this file.
Functions | |
static void * | wc (gearman_job_st *job, void *cb_arg, size_t *result_size, gearman_return_t *ret_ptr) |
static void | usage (char *name) |
int | main (int argc, char *argv[]) |
Example Worker.
Definition in file wc_worker.c.
static void * wc | ( | gearman_job_st * | job, | |
void * | cb_arg, | |||
size_t * | result_size, | |||
gearman_return_t * | ret_ptr | |||
) | [static] |
Definition at line 100 of file wc_worker.c.
static void usage | ( | char * | name | ) | [static] |
Definition at line 155 of file wc_worker.c.
int main | ( | int | argc, | |
char * | argv[] | |||
) |
Definition at line 27 of file wc_worker.c.