gearman_client_echo.rst 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. ===========================
  2. Testing Clients and Workers
  3. ===========================
  4. --------
  5. SYNOPSIS
  6. --------
  7. #include <libgearman/gearman.h>
  8. .. c:function:: gearman_return_t gearman_client_echo(gearman_client_st *client, const void *workload, size_t workload_size)
  9. .. c:function:: gearman_return_t gearman_worker_echo(gearman_worker_st *worker, const void *workload, size_t workload_size)
  10. -----------
  11. DESCRIPTION
  12. -----------
  13. :c:func:`gearman_client_echo` and :c:func:`gearman_worker_echo` send a message to a :program:`gearmand` server. The server will then respond with the message that it sent. These commands are just for testing the connection to the servers that were configure for the :c:type:`gearman_client_st` and the :c:type:`gearman_worker_st` that were used.
  14. ------------
  15. RETURN VALUE
  16. ------------
  17. :c:type:`gearman_return_t`
  18. ----
  19. HOME
  20. ----
  21. To find out more information please check:
  22. `https://gearman.org/gearmand/ <https://gearman.org/gearmand/>`_
  23. .. seealso::
  24. :manpage:`gearmand(8)` :manpage:`libgearman(3)`