multicast_publish

March 26, 2020 Contributors

Name

multicast_publish

Synopsis

#include "hooks/msgc/multicast_publish.h"

| void **multicast_publish** ( | closure, |   |
|   | group, |   |
|   | group_len, |   |
|   | data, |   |
|   | data_len, |   |
|   | result); |   |

void * <var class="pdparam">closure</var>;
const char * <var class="pdparam">group</var>;
u_int16_t <var class="pdparam">group_len</var>;
const unsigned char * <var class="pdparam">data</var>;
u_int32_t <var class="pdparam">data_len</var>;
int * <var class="pdparam">result</var>;

| int **has_msgc_multicast_publish_hook** ( | ); |   |

| void **register_msgc_multicast_publish_hook_first** ( | hook, |   |
|   | closure); |   |

ec_hook_msgc_multicast_publish_func_t <var class="pdparam">hook</var>;
void *<var class="pdparam">closure</var>;

| void **register_msgc_multicast_publish_hook_last** ( | hook, |   |
|   | closure); |   |

ec_hook_msgc_multicast_publish_func_t <var class="pdparam">hook</var>;
void *<var class="pdparam">closure</var>;

| void **call_msgc_multicast_publish_hook** ( | group, |   |
|   | group_len, |   |
|   | data, |   |
|   | data_len, |   |
|   | result); |   |

const char * <var class="pdparam">group</var>;
u_int16_t <var class="pdparam">group_len</var>;
const unsigned char * <var class="pdparam">data</var>;
u_int32_t <var class="pdparam">data_len</var>;
int * <var class="pdparam">result</var>;

Description

This hook is registered by the MSGC infrastructure. Call it to publish data to the defined group. result is 0 on success, non-zero on failure to publish.