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

Function main

src/multicast.c:690–717  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

688//#define TEST
689#ifdef TEST
690int main(int argc, const char *argv[])
691{
692 RIG *rig;
693 rig_model_t myrig_model;
694 rig_set_debug_level(RIG_DEBUG_NONE);
695
696 if (argc > 1) { myrig_model = atoi(argv[1]); }
697 else
698 {
699 myrig_model = 1035;
700 }
701
702 rig = rig_init(myrig_model);
703
704 if (rig == NULL)
705 {
706 fprintf(stderr, "rig==NULL?\n");
707 return 1;
708 }
709
710 strncpy(RIGPORT(rig)->pathname, "/dev/ttyUSB0", HAMLIB_FILPATHLEN - 1);
711 RIGPORT(rig)->parm.serial.rate = 38400;
712 rig_open(rig);
713 multicast_init(rig, "224.0.0.1", 4532);
714 pthread_join(STATE(rig)->multicast->threadid, NULL);
715 pthread_exit(NULL);
716 return 0;
717}
718#endif

Callers

nothing calls this directly

Calls 4

rig_openFunction · 0.85
multicast_initFunction · 0.85
pthread_joinFunction · 0.85
pthread_exitFunction · 0.85

Tested by

no test coverage detected