![]() |
Hamlib 4.5.4
|
Network port IO. More...
#include <hamlib/config.h>#include <stdlib.h>#include <stdio.h>#include <string.h>#include <unistd.h>#include <fcntl.h>#include <errno.h>#include <sys/types.h>#include <signal.h>#include <pthread.h>#include <netinet/in.h>#include <netdb.h>#include <arpa/inet.h>#include <sys/socket.h>#include <sys/ioctl.h>#include <hamlib/rig.h>#include "network.h"#include "misc.h"#include "asyncpipe.h"#include "snapshot_data.h"
Data Structures | |
| struct | multicast_publisher_data_packet_s |
| struct | multicast_publisher_priv_data_s |
Macros | |
| #define | MULTICAST_PUBLISHER_DATA_PACKET_TYPE_POLL 0x01 |
| #define | MULTICAST_PUBLISHER_DATA_PACKET_TYPE_TRANSCEIVE 0x02 |
| #define | MULTICAST_PUBLISHER_DATA_PACKET_TYPE_SPECTRUM 0x03 |
Typedefs | |
| typedef struct multicast_publisher_priv_data_s | multicast_publisher_priv_data |
Functions | |
| struct multicast_publisher_data_packet_s | __attribute__ ((packed)) |
| int | network_init () |
| int | network_open (hamlib_port_t *rp, int default_port) |
| Open network port using rig.state data. More... | |
| void | network_flush (hamlib_port_t *rp) |
| Clears any data in the read buffer of the socket. More... | |
| void | sync_callback (int lock) |
| int | network_multicast_publisher_start (RIG *rig, const char *multicast_addr, int multicast_port, enum multicast_item_e items) |
| Start multicast publisher. More... | |
| int | network_multicast_publisher_stop (RIG *rig) |
| Stop multicast publisher. More... | |
Variables | |
| uint8_t | type |
| uint8_t | padding |
| uint16_t | data_length |
| multicast_publisher_args | |
Network port IO.