view include/rtp_alloc_simple.h @ 6:191d58f5c24f

librtpalloc: port the simple client
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 27 May 2024 21:10:01 +0000
parents
children
line wrap: on
line source

/*
 * This header file defines the library interface for "simple"
 * RTP endpoint allocation.
 */

#pragma once

#include <sys/socket.h>

struct rtp_alloc_simple {
	struct sockaddr_storage gsm_addr;
	int	gsm_rtp_fd;
	int	gsm_rtcp_fd;
	struct sockaddr_storage pstn_addr;	/* also used for 2nd GSM */
	int	pstn_rtp_fd;
	int	pstn_rtcp_fd;
};

int rtp_alloc_simple(int ep_type, struct rtp_alloc_simple *out);