GEARMAN_CLIENT_HAS_OPTION(3)
π GEARMAN_CLIENT_HAS_OPTION π
okay bestie, sit DOWN, we're talking about gearman_client_has_option β it's part of the Gearmand docs over at http://gearman.info/ and it's literally the little squad of functions that let you peek at, flip on, and flip off the options on a Gearman client. no cap. π
β¨ SYNOPSIS β¨
first things first, you gotta pull in the header:
#include <libgearman/gearman.h>
and here's the whole friend group of functions, exactly as they live in the lib:
type gearman_client_options_t
gearman_client_options_t gearman_client_options(const gearman_client_st *client)
void gearman_client_set_options(gearman_client_st *client, gearman_client_options_t options)
void gearman_client_add_options(gearman_client_st *client, gearman_client_options_t options)
void gearman_client_remove_options(gearman_client_st *client, gearman_client_options_t options)
bool gearman_client_has_option(gearman_client_st *client, gearman_client_options_t option)
and when you build, you link with -lgearman. that's the vibe. π
πΈ DESCRIPTION πΈ
so gearman_client_options() hands you back the gearman_client_options_t for a gearman_client_st. you turn options ON with gearman_client_add_options() and you turn options OFF with gearman_client_remove_options(). simple as.
π¨ okay important: gearman_client_set_options() has been DEPRECATED. she's retired, bestie. don't be texting her.
π The currently supported options are:
GEARMAN_CLIENT_NON_BLOCKINGβ runs the client in a non-blocking mode. she does not wait around, periodt. πGEARMAN_CLIENT_FREE_TASKSβ automatically frees task objects the second they're complete. cleanup on aisle you, iconic behavior β¨GEARMAN_CLIENT_UNBUFFERED_RESULTβ lets the client read data in chunks instead of making the library buffer the ENTIRE data result and hand the whole thing back to you. it's giving streaming. it's giving main character energy. π¦GEARMAN_CLIENT_GENERATE_UNIQUEβ generates a unique id for every task created, by generating a UUID. no two tasks are the same, fr fr π
β RETURN VALUE β
Various. yeah. that's the whole answer. take it up with the library. π
π HOME π
want more lore? go check out: <http://gearman.info/>
also see:
π Author
Data Differential <http://www.datadifferential.com/>
π Copyright
2011-2014, Data Differential, <http://www.datadifferential.com/>
and that's the whole page, bestie π«Ά this was Gearmand docs version 1.1.21+ds, dated Feb 04, 2026 β slay, go forth and check your options πβ¨π
π¦ where this page comes from
- ubuntu resolute: libgearman-dev 1.1.21+ds-1ubuntu3 Β· BSD-3-Clause
- ubuntu stonking: libgearman-dev 1.1.21+ds-1ubuntu3 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms