MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / msg_add_trailer

Function msg_add_trailer

modules/clusterer/clusterer.c:631–641  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

629
630
631int msg_add_trailer(bin_packet_t *packet, int cluster_id, int dst_id)
632{
633 if (bin_push_int(packet, cluster_id) < 0)
634 return -1;
635 if (bin_push_int(packet, current_id) < 0)
636 return -1;
637 if (bin_push_int(packet, dst_id) < 0)
638 return -1;
639
640 return 0;
641}
642
643
644static int prep_gen_msg(bin_packet_t *packet, int cluster_id, int dst_id,

Callers 11

send_sync_reqFunction · 0.85
cl_sync_chunk_startFunction · 0.85
send_sync_replFunction · 0.85
prep_gen_msgFunction · 0.85
cl_send_toFunction · 0.85
cl_send_allFunction · 0.85
cl_send_all_bridgesFunction · 0.85
cl_send_all_havingFunction · 0.85
send_mi_cmdFunction · 0.85
bcast_remove_nodeFunction · 0.85
shtag_send_active_infoFunction · 0.85

Calls 1

bin_push_intFunction · 0.85

Tested by

no test coverage detected