comparison 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
comparison
equal deleted inserted replaced
5:4a5560ef0807 6:191d58f5c24f
1 /*
2 * This header file defines the library interface for "simple"
3 * RTP endpoint allocation.
4 */
5
6 #pragma once
7
8 #include <sys/socket.h>
9
10 struct rtp_alloc_simple {
11 struct sockaddr_storage gsm_addr;
12 int gsm_rtp_fd;
13 int gsm_rtcp_fd;
14 struct sockaddr_storage pstn_addr; /* also used for 2nd GSM */
15 int pstn_rtp_fd;
16 int pstn_rtcp_fd;
17 };
18
19 int rtp_alloc_simple(int ep_type, struct rtp_alloc_simple *out);