Gearman Developer Documentation

examples/reverse_worker.c File Reference

Example Worker. More...

#include <errno.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <libgearman/gearman.h>

Go to the source code of this file.

Enumerations

enum  reverse_worker_options_t { REVERSE_WORKER_OPTIONS_NONE = 0, REVERSE_WORKER_OPTIONS_DATA = (1 << 0), REVERSE_WORKER_OPTIONS_STATUS = (1 << 1), REVERSE_WORKER_OPTIONS_UNIQUE = (1 << 2) }

Functions

static void * reverse (gearman_job_st *job, void *context, size_t *result_size, gearman_return_t *ret_ptr)
static void usage (char *name)
int main (int argc, char *argv[])

Detailed Description

Example Worker.

Definition in file reverse_worker.c.


Enumeration Type Documentation

Enumerator:
REVERSE_WORKER_OPTIONS_NONE 
REVERSE_WORKER_OPTIONS_DATA 
REVERSE_WORKER_OPTIONS_STATUS 
REVERSE_WORKER_OPTIONS_UNIQUE 

Definition at line 22 of file reverse_worker.c.


Function Documentation

static void * reverse ( gearman_job_st job,
void *  context,
size_t *  result_size,
gearman_return_t ret_ptr 
) [static]

Definition at line 139 of file reverse_worker.c.

static void usage ( char *  name  )  [static]

Definition at line 203 of file reverse_worker.c.

int main ( int  argc,
char *  argv[] 
)

Definition at line 35 of file reverse_worker.c.

Generated on Tue Jun 15 11:40:21 2010 by  doxygen 1.6.3