MCPcopy Create free account
hub / github.com/Hamlib/Hamlib / network_publish_rig_transceive_data

Function network_publish_rig_transceive_data

src/network.c:856–877  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

854}
855
856int network_publish_rig_transceive_data(RIG *rig)
857{
858 const struct rig_state *rs = STATE(rig);
859 int result;
860 multicast_publisher_data_packet packet =
861 {
862 .type = MULTICAST_PUBLISHER_DATA_PACKET_TYPE_TRANSCEIVE,
863 .padding = 0,
864 .data_length = 0,
865 };
866
867 if (rs->multicast_publisher_priv_data == NULL)
868 {
869 // Silently ignore call if multicast publisher is not enabled
870 return RIG_OK;
871 }
872
873 multicast_publisher_write_lock(rig);
874 result = multicast_publisher_write_packet_header(rig, &packet);
875 multicast_publisher_write_unlock(rig);
876 return result;
877}
878
879int network_publish_rig_spectrum_data(RIG *rig, struct rig_spectrum_line *line)
880{

Callers 6

rig_fire_freq_eventFunction · 0.85
rig_fire_mode_eventFunction · 0.85
rig_fire_vfo_eventFunction · 0.85
rig_fire_ptt_eventFunction · 0.85
rig_fire_dcd_eventFunction · 0.85
rig_fire_pltune_eventFunction · 0.85

Tested by

no test coverage detected