logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

gearman_worker_add_servers - Gearmand Documentation, http://gearman.info/

Author

Description

gearman_worker_add_server() will add an additional gearmand server to the list of servers that the worker
       will take work from.

       gearman_worker_remove_servers() will remove all servers from the gearman_worker_st.

       gearman_worker_add_servers()  takes a list of gearmand servers that will be parsed to provide servers for
       the worker. The format for this is 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

Home

       To find out more information please check: http://gearman.info/SEEALSO:gearmandGearmanClient/WorkerLibrarygearman_worker_st

Name

       gearman_worker_add_servers - Gearmand Documentation, http://gearman.info/

Return Value

gearman_worker_add_server() and gearman_worker_remove_servers() return gearman_return_t.

Synopsis

       #include <libgearman/gearman.h>

       gearman_return_tgearman_worker_add_server(gearman_worker_st*worker,constchar*host,in_port_tport)gearman_return_tgearman_worker_add_servers(gearman_worker_st*worker,constchar*servers)voidgearman_worker_remove_servers(gearman_worker_st*worker)

       Link with -lgearman

See Also