GEARMAN_WORKER_REMOVE_SERVERS(3)

✨ NAME ✨

gearman_worker_remove_servers β€” Gearmand Documentation, <http://gearman.info/>

okay bestie so this is the one that yeets your whole server list into the void πŸ’… it lives in the gearmand manual, section 3, iykyk.


🌸 SYNOPSIS 🌸

#include <libgearman/gearman.h>

gearman_return_t <#c.gearman_return_t>
gearman_worker_add_server(gearman_worker_st <#c.gearman_worker_st>
*worker, const char *host, in_port_t <#c.in_port_t> port)

gearman_return_t <#c.gearman_return_t>
gearman_worker_add_servers(gearman_worker_st <#c.gearman_worker_st>
*worker, const char *servers)

void gearman_worker_remove_servers(gearman_worker_st <#c
.gearman_worker_st> *worker)

Link with -lgearman 🫢 don't forget it or nothing links and you'll be sad.


πŸ¦‹ DESCRIPTION πŸ¦‹

gearman_worker_add_server() adds one more gearmand server onto the list of servers your worker will pull work from. like collecting pokémon but make it job queues ✨

gearman_worker_remove_servers() removes all the servers from the gearman_worker_st <#c.gearman_worker_st>. every single one. poof. gone. not a "remove one" girlie β€” it's all of them, periodt πŸ’€

gearman_worker_add_servers() takes a list of gearmand servers and parses it to give the worker its servers. the format is literally this, memorize it bestie:

SERVER[:PORT][,SERVER[:PORT]]...

Examples of this are:

10.0.0.1,10.0.0.2,10.0.0.3
localhost234,jobserver2.domain.com:7003,10.0.0.3

(no, localhost234 is not a typo, it's in the original, we don't question the lore 🌈)


πŸ’– RETURN VALUE πŸ’–

gearman_worker_add_server() and gearman_worker_remove_servers() return a gearman_return_t <#c.gearman_return_t>. that's the vibe check on whether it worked or not.

lowkey notice: gearman_worker_add_servers() is not listed here, and neither is anything for the void one. we just report what the page reports, no cap πŸ€·β€β™€οΈ

πŸ‘‘ HOME πŸ‘‘

want more lore? go here: <http://gearman.info/> 🧚

See also:

  • gearmand Gearman Client/Worker Library
  • gearman_worker_st <#c.gearman_worker_st>

πŸŽ€ Author πŸŽ€

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

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


and that's the whole page bestie, you ate it UP 🌟 this was GEARMAN_WORKER_REMOVE_SERVERS(3) from the gearmand docs, version 1.1.21+ds, dated Feb 04, 2026 β€” slay, stay hydrated, and may your servers always be parseable πŸ’œπŸ’…

πŸ“¦ where this page comes from