FreeCalypso > hg > themwi-rtp-mgr
diff 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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/include/rtp_alloc_simple.h Mon May 27 21:10:01 2024 +0000 @@ -0,0 +1,19 @@ +/* + * 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);