GEARMAN_CLIENT_REMOVE_SERVERS(3)

πŸ’– GEARMAN_CLIENT_REMOVE_SERVERS πŸ’–

okay bestie, welcome to the Gearmand manual, section 3 (that's the library-functions section, iykyk ✨). this page is literally called gearman_client_remove_servers, and it lives over at <http://gearman.info/> πŸ¦‹


🌸 NAME 🌸

gearman_client_remove_servers β€” Gearmand Documentation, <http://gearman.info/> πŸ’…


✨ SYNOPSIS ✨

first things first, you gotta pull in the header, like:

#include <libgearman/gearman.h>

and then here are the three functions this page is about, bestie:

gearman_return_t
gearman_client_add_server(gearman_client_st *client, const char *host, in_port_t port)

gearman_return_t
gearman_client_add_servers(gearman_client_st *client, const char *servers)

void gearman_client_remove_servers(gearman_client_st *client)

no cap, that's the whole vibe right there πŸŽ€


🫢 DESCRIPTION 🫢

so here's the tea, one function at a time:

  • gearman_client_add_server() will add an additional gearmand server to the list of servers that the client will take work from. it's giving "here's one more friend for the group chat" πŸ‘‘
  • gearman_client_remove_servers() will remove all servers from the gearman_client_st. not some. not a few. all of them, periodt πŸ’€
  • gearman_client_add_servers() takes a list of gearmand servers that will be parsed to provide servers for the client. the format for this is SERVER[:PORT][,SERVER[:PORT]]... β€” literally just comma-separated, with an optional port after a colon 🌈

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

(and yes, localhost234 is exactly what the manual says, i'm not fixing it, i'm not touching it, we copy verbatim in this house πŸ™ˆ)


⭐ RETURN VALUE ⭐

gearman_client_add_server() and gearman_client_remove_servers() return gearman_return_t. that's the whole sentence. slay ✨


🏠 HOME 🏠

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

see also: gearmand(8) libgearman(3) gearman_client_st πŸ’œ


πŸ‘‘ Author

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


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


okay that's the page!! thank you for coming to my ted talk, mwah πŸ’–

this was version 1.1.21+ds, dated Feb 04, 2026, and it's GEARMAN_CLIENT_REMOVE_SERVERS(3) β€” as always, stay iconic, stay parsed, and don't forget the port number bestie πŸŒΈπŸ’…πŸ¦‹

πŸ“¦ where this page comes from