Hamlib
4.6.2
Main Page
Related Pages
Modules
Data Structures
Files
Examples
File List
Globals
include
hamlib
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
s_rig
The Rig structure.
Definition:
rig.h:3097
rig.h
Hamlib rig data structures.
Generated by
1.8.10
Hamlib documentation for version 4.6.2—Sun Mar 30 2025 10:41:53
Project page:
http://www.hamlib.org