//include //#include //#include //#include //#include #include //#include #ifdef HAVE_NETINET_IN_H #include #endif #ifdef _WIN32 #include #include #endif #ifdef HAVE_ARPA_INET_H #include #endif #ifndef MULTICAST_H #define MULTICAST_H #if 0 // moved to rig.h struct multicast_s { int multicast_running; int sock; int seqnumber; int runflag; // = 0; pthread_t threadid; #ifdef HAVE_ARPA_INET_H #warn HAVE_ARPA_INET struct ip_mreq mreq; // = {0}; struct sockaddr_in dest_addr; // = {0}; #else #warn DO NOT HAVE ARPA_INET_H #endif }; #endif struct multicast_vfo { char *name; double freq; char *mode; int width; int widthLower; int widthUpper; unsigned char rx; // true if in rx mode unsigned char tx; // true in in tx mode }; struct multicast_broadcast { char *ID; struct multicast_vfo **vfo; }; // returns # of bytes sent extern HAMLIB_EXPORT (int) multicast_init(RIG *rig, char *addr, int port); extern HAMLIB_EXPORT (int) multicast_send(RIG *rig, const char *msg, int msglen); #endif //MULTICAST_H