Function pub_send_sync

Function pub_send_sync#

Function Documentation#

ECAL_API int pub_send_sync(ECAL_HANDLE handle_, const char *payload_, const int length_, const long long time_, const long long acknowledge_timeout_ms_)#

Send a message to all subscribers synchronized with acknowledge timeout.

Deprecated:

Will be removed in future eCAL versions.

This synchronized mode is currently implemented for local interprocess communication (shm-ecal layer) only.

Parameters:
  • handle_ – Publisher handle.

  • payload_ – Buffer that contains content to send.

  • length_ – Length of buffer.

  • time_ – Send time (-1 = use eCAL system time in us).

  • acknowledge_timeout_ms_ – Maximum time to wait for all subscribers acknowledge feedback in ms (content received and processed).

Returns:

Number of bytes sent.