Poster of Linux kernelThe best gift for a Linux geek
gearman_packet_add

gearman_packet_add

Section: Gearman (3) Updated: 2009-09-29
Local index Up
 

NAME

gearman_packet_add - Gearman Core Interface  

SYNOPSIS

#include <libgearman/gearman.h>

gearman_return_t gearman_packet_add(gearman_st *gearman, gearman_packet_st *packet, gearman_magic_t magic, gearman_command_t command, const void *arg, ...);  

DESCRIPTION

Initialize a packet with all arguments. Variable list is NULL terminated alternating argument and argument size (size_t) pairs. For example: *

ret= gearman_packet_add_args(gearman, packet,
                             GEARMAN_MAGIC_REQUEST,
                             GEARMAN_COMMAND_SUBMIT_JOB,
                             function_name, strlen(function_name) + 1,
                             unique_string, strlen(unique_string) + 1,
                             workload, workload_size, NULL);

*
 

PARAMETERS

[in] gearman Structure previously initialized with gearman_create() or gearman_clone().
[in] packet Pre-allocated packet to initialize with arguments.
[in] magic Magic type for packet header.
[in] command Command type for packet.
[in] arg NULL terminated argument list in pairs of "arg, arg_size".
 

RETURN VALUE

Standard gearman return value.  

SEE ALSO

The Gearman homepage: http://www.gearman.org/  

BUGS

Bugs should be reported at https://bugs.launchpad.net/gearmand  

COPYING

Copyright (C) 2008 Brian Aker, Eric Day. All rights reserved.

Use and distribution licensed under the BSD license. See the COPYING file in the original source for full text.


 

Index

NAME
SYNOPSIS
DESCRIPTION
PARAMETERS
RETURN VALUE
SEE ALSO
BUGS
COPYING

This document was created by man2html, using the manual pages.
Time: 22:37:14 GMT, April 16, 2011