gearman_packet_add(3)

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.
Copyright © 2010-2025 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout