GEARMAN_CLIENT_OPTIONS(3)

πŸ’– GEARMAN_CLIENT_OPTIONS πŸ’–

okay bestie, gathering around for GEARMAN_CLIENT_OPTIONS(3), part of the Gearmand docs over at <http://gearman.info/> β€” this is the one that tells you how to flip all the lil switches on your Gearman client. it's giving "control panel energy" and we are OBSESSED. let's get into it 🫢


✨ NAME ✨

gearman_client_options β€” literally the Gearmand Documentation, <http://gearman.info/>, that's the whole vibe πŸ’…


🌸 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, it's Link with -lgearman β€” don't forget it or the linker will simply perish 😭


πŸŽ€ DESCRIPTION πŸŽ€

so gearman_client_options() hands you back the gearman_client_options_t for a gearman_client_st. turning stuff on is gearman_client_add_options(), and turning stuff off is gearman_client_remove_options(). that's the whole bit, no cap πŸ”₯

real talk though: gearman_client_set_options() has been DEPRECATED. she's retired, bestie. please don't build new things on her. πŸ™ˆ

here are the options that are currently supported, like, right now:

  • GEARMAN_CLIENT_NON_BLOCKING β€” this is a type, and it makes the client run in non-blocking mode. run the client in a non-blocking mode, no waiting around, main character energy πŸ¦‹
  • GEARMAN_CLIENT_FREE_TASKS β€” this is a type too. it automatically frees task objects once they're done β€” literally auto-cleanup, slay ✨
  • GEARMAN_CLIENT_UNBUFFERED_RESULT β€” also a type. lets the client read its data in chunks instead of the library buffering the ENTIRE data result and handing the whole thing back to you at once. snack-sized instead of family-sized πŸ“
  • GEARMAN_CLIENT_GENERATE_UNIQUE β€” yep, a type. generates a unique id for every task the client creates, by generating a UUID. iconic πŸ‘‘

⭐ RETURN VALUE ⭐

Various. that's it. that's the answer. πŸ’€


🌈 HOME 🌈

to find out more information please check: <http://gearman.info/>

See also: gearmand(8) libgearman(3)


πŸ’œ Author πŸ’œ

Data Differential <http://www.datadifferential.com/>

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


and that's a wrap, bestie 🧚 this was manual page GEARMAN_CLIENT_OPTIONS(3), version 1.1.21+ds, dated Feb 04, 2026 β€” all brought to you by the good people at Gearmand. go forth and configure your options, ily, periodt πŸ’–βœ¨πŸŒΈ

πŸ“¦ where this page comes from