Hamlib
4.6.1
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
23
struct
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
35
struct
multicast_broadcast
36
{
37
char
*ID;
38
struct
multicast_vfo **vfo;
39
};
40
41
// returns # of bytes sent
42
extern
HAMLIB_EXPORT (
int
) multicast_init(
RIG
*rig,
char
*addr,
int
port);
43
extern
HAMLIB_EXPORT (
int
) multicast_send(
RIG
*rig,
const
char
*msg,
int
msglen);
44
extern
HAMLIB_EXPORT (
int
) multicast_stop(
RIG
*rig);
45
#endif
//MULTICAST_H
RIG
struct s_rig RIG
Rig structure definition (see rig for details).
Definition
rig.h:264
rig.h
Hamlib rig data structures.
include
hamlib
multicast.h
Generated by
1.14.0
Hamlib documentation for version 4.6.1—Wed Jun 4 2025 00:00:00
Project page:
http://www.hamlib.org