gearman_client_add_server - Gearmand Documentation, http://gearman.info/
Contents
Copyright
2011-2014, Data Differential, http://www.datadifferential.com/
1.1.20+ds Mar 19, 2025 GEARMAN_CLIENT_ADD_SERVER(3)
Description
gearman_client_add_server() will add an additional gearmand server to the list of servers that the client
will take work from.
gearman_client_remove_servers() will remove all servers from the gearman_client_st.
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]]...
Examplesofthisare::
10.0.0.1,10.0.0.2,10.0.0.3 localhost234,jobserver2.domain.com:7003,10.0.0.3
Home
To find out more information please check: http://gearman.info/SEEALSO:gearmand(8)libgearman(3)gearman_client_stName
gearman_client_add_server - Gearmand Documentation, http://gearman.info/Return Value
gearman_client_add_server() and gearman_client_remove_servers() return gearman_return_t.
Synopsis
#include <libgearman/gearman.h>
gearman_return_tgearman_client_add_server(gearman_client_st*client,constchar*host,in_port_tport)gearman_return_tgearman_client_add_servers(gearman_client_st*client,constchar*servers)voidgearman_client_remove_servers(gearman_client_st*client)