mirror of
https://github.com/radio95-rnt/rds95.git
synced 2026-02-27 04:43:52 +01:00
23 lines
493 B
C
23 lines
493 B
C
#pragma once
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <unistd.h>
|
|
#include <fcntl.h>
|
|
#include <poll.h>
|
|
#include <errno.h>
|
|
#include <arpa/inet.h>
|
|
#include <sys/socket.h>
|
|
#include <sys/types.h>
|
|
#include <netinet/in.h>
|
|
#include "modulator.h"
|
|
#include "lua_rds.h"
|
|
|
|
#define CMD_BUFFER_SIZE 255
|
|
#define CTL_BUFFER_SIZE (CMD_BUFFER_SIZE * 2)
|
|
#define READ_TIMEOUT_MS 225
|
|
|
|
int open_udp_server(int port, RDSModulator *rds_mod);
|
|
void poll_udp_server();
|
|
void close_udp_server();
|