GEARMAN_CLIENT_OPTIONS_T(3)

πŸ’… GEARMAN_CLIENT_OPTIONS_T πŸ’…

okay bestie, welcome to the Gearmand docs ✨ this one's from GEARMAN_CLIENT_OPTIONS_T(3), and it's all about the lil options toggles on your gearman client. pull up a chair, grab a boba, we're doing this πŸ§‹


🌸 SYNOPSIS 🌸

#include <libgearman/gearman.h>

type gearman_client_options_t

gearman_client_options_t gearman_client_options(const gearman_client_st
<#c.gearman_client_st> *client)

void gearman_client_set_options(gearman_client_st <#c.gearman_client_st>
*client, gearman_client_options_t options)

void gearman_client_add_options(gearman_client_st <#c.gearman_client_st>
*client, gearman_client_options_t options)

void gearman_client_remove_options(gearman_client_st <#c
.gearman_client_st> *client, gearman_client_options_t options)

bool gearman_client_has_option(gearman_client_st <#c.gearman_client_st>
*client, gearman_client_options_t option)

and when you link it, you link with -lgearman 🫢


✨ DESCRIPTION ✨

so gearman_client_options() returns the gearman_client_options_t for a gearman_client_st <#c.gearman_client_st>. simple. iconic.

you turn options ON with gearman_client_add_options() and you turn options OFF with gearman_client_remove_options(). that's the whole vibe check πŸ”₯

⚠️ also, heads up: gearman_client_set_options() has been DEPRECATED. not me showing up to the function's funeral πŸ’€ don't use it, bestie.

πŸŽ€ The currently supported options πŸŽ€

  • type GEARMAN_CLIENT_NON_BLOCKING β€” runs the client in a non-blocking mode. no waiting around, main character energy only πŸ‘‘
  • type GEARMAN_CLIENT_FREE_TASKS β€” automatically frees task objects once they're complete. so you don't have to do it yourself. self-care tbh 🌸
  • type GEARMAN_CLIENT_UNBUFFERED_RESULT β€” lets the client read the data in chunks instead of making the library buffer the entire data result and hand the whole thing back to you. snack-sized, not the whole cake πŸ“
  • type GEARMAN_CLIENT_GENERATE_UNIQUE β€” generates a unique id for each task, by generating a UUID. every task gets its own little name tag 🏷️✨

πŸ’– RETURN VALUE πŸ’–

Various. yes really, that's it. it's giving "we ran out of things to say" 😭


πŸ¦‹ HOME πŸ¦‹

wanna know more? the lore lives here: <http://gearman.info/>

See also:


πŸ‘‘ Author πŸ‘‘

Data Differential <http://www.datadifferential.com/> β€” they made it, we love them 🫢

2011-2014, Data Differential, <http://www.datadifferential.com/>


okay that's the whole page bestie, you ate πŸ’… this icon of a manpage is straight from version 1.1.21+ds, dated Feb 04, 2026 β€” so if you're reading this in the future, hi, hope you're slaying πŸ¦‹βœ¨

πŸ“¦ where this page comes from