Libgearman¶
libgearman is a small, thread-safe client library for the
gearman protocol. The code has all been written with an eye to allow
for both web and embedded usage. It handles the work behind routing
particular keys to specific servers that you specify. By default jobs go to
the first idle server in the order you added them; a client can opt into
routing by the job’s unique instead, see
gearman_client_set_server_selection_by_unique(). It implements both
the client and worker interfaces.
Getting Started¶
Examples¶
Client Functions¶
Creating Tasks¶
Worker Functions¶
Misc¶
Structures¶
Types¶
Extra¶
- List of client/worker errors
- GEARMAN_SUCCESS
- GEARMAN_IO_WAIT
- GEARMAN_SHUTDOWN
- GEARMAN_SHUTDOWN_GRACEFUL
- GEARMAN_ERRNO
- GEARMAN_EVENT
- GEARMAN_TOO_MANY_ARGS
- GEARMAN_NO_ACTIVE_FDS
- GEARMAN_INVALID_MAGIC
- GEARMAN_INVALID_COMMAND
- GEARMAN_INVALID_PACKET
- GEARMAN_UNEXPECTED_PACKET
- GEARMAN_GETADDRINFO
- GEARMAN_NO_SERVERS
- GEARMAN_LOST_CONNECTION
- GEARMAN_MEMORY_ALLOCATION_FAILURE
- GEARMAN_JOB_EXISTS
- GEARMAN_JOB_QUEUE_FULL
- GEARMAN_SERVER_ERROR
- GEARMAN_WORK_ERROR
- GEARMAN_WORK_DATA
- GEARMAN_WORK_WARNING
- GEARMAN_WORK_STATUS
- GEARMAN_WORK_EXCEPTION
- GEARMAN_WORK_FAIL
- GEARMAN_NOT_CONNECTED
- GEARMAN_COULD_NOT_CONNECT
- GEARMAN_SEND_IN_PROGRESS
- GEARMAN_RECV_IN_PROGRESS
- GEARMAN_NOT_FLUSHING
- GEARMAN_DATA_TOO_LARGE
- GEARMAN_INVALID_FUNCTION_NAME
- GEARMAN_INVALID_WORKER_FUNCTION
- GEARMAN_NO_REGISTERED_FUNCTION
- GEARMAN_NO_REGISTERED_FUNCTIONS
- GEARMAN_NO_JOBS
- GEARMAN_ECHO_DATA_CORRUPTION
- GEARMAN_NEED_WORKLOAD_FN
- GEARMAN_PAUSE
- GEARMAN_UNKNOWN_STATE
- GEARMAN_PTHREAD
- GEARMAN_PIPE_EOF
- GEARMAN_QUEUE_ERROR
- GEARMAN_FLUSH_DATA
- GEARMAN_SEND_BUFFER_TOO_SMALL
- GEARMAN_IGNORE_PACKET
- GEARMAN_UNKNOWN_OPTION
- GEARMAN_TIMEOUT
- GEARMAN_ARGUMENT_TOO_LARGE
- GEARMAN_INVALID_ARGUMENT
- GEARMAN_IN_PROGRESS
- GEARMAN_FATAL
- GEARMAN_FATAL
- GEARMAN_ERROR
- GEARMAN_MAX_RETURN
- Required C types