Hamlib 4.7~git
 
Loading...
Searching...
No Matches
multicast.h
1//include <stdio.h>
2//#include <stdlib.h>
3//#include <string.h>
4//#include <errno.h>
5//#include <unistd.h>
6#include <hamlib/rig.h>
7//#include <sys/socket.h>
8#ifdef HAVE_NETINET_IN_H
9#include <netinet/in.h>
10#endif
11#ifdef _WIN32
12#include <winsock2.h>
13#include <ws2tcpip.h>
14#endif
15
16#ifdef HAVE_ARPA_INET_H
17#include <arpa/inet.h>
18#endif
19
20#ifndef MULTICAST_H
21#define MULTICAST_H
22
23struct multicast_vfo
24{
25 char *name;
26 double freq;
27 char *mode;
28 int width;
29 int widthLower;
30 int widthUpper;
31 unsigned char rx; // true if in rx mode
32 unsigned char tx; // true in in tx mode
33};
34
35struct multicast_broadcast
36{
37 char *ID;
38 struct multicast_vfo **vfo;
39};
40
41// returns # of bytes sent
42extern HAMLIB_EXPORT (int) multicast_init(RIG *rig, char *addr, int port);
43extern HAMLIB_EXPORT (int) multicast_send(RIG *rig, const char *msg, int msglen);
44extern HAMLIB_EXPORT (int) multicast_stop(RIG *rig);
45#endif //MULTICAST_H
struct s_rig RIG
Rig structure definition (see rig for details).
Definition rig.h:262
Hamlib rig data structures.