gearman_con_add(3)
NAME
gearman_con_add - Gearman Core Interface
SYNOPSIS
#include <libgearman/gearman.h> gearman_con_st *gearman_con_add(gearman_st *gearman, gearman_con_st *con, const char *host, in_port_t port);
DESCRIPTION
Create a connection structure with the given host and port. *
PARAMETERS
[in] gearman Structure previously initialized with gearman_create() or gearman_clone().
[in] con Caller allocated structure, or NULL to allocate one.
[in] host Host or IP address to connect to.
[in] port Port to connect to.
RETURN VALUE
On success, a pointer to the (possibly allocated) structure. On failure
this will be NULL.
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.