Function pub_send

Function Documentation

ECAL_API int pub_send(ECAL_HANDLE handle_, const char *payload_, const int length_, const long long time_)

Send a message to all subscribers.

Parameters
  • handle_ – Publisher handle.

  • payload_ – Buffer that contains content to send.

  • length_ – Send buffer length.

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

Returns

Number of bytes sent.