comparison include/endp.h @ 37:8f1700a42ca5 default tip

set_remote: add functions for IPv6 and for sockaddr_{in,in6} A convenient way to pass in remote end address as struct sockaddr_in is needed for tw-border-mgw; IPv6 support will be needed in order to bring twrtp_endp into Osmocom mainline.
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 23 Nov 2024 19:08:28 +0000
parents c0ce22777694
children
comparison
equal deleted inserted replaced
36:84affc6de365 37:8f1700a42ca5
86 int twrtp_endp_bind_ip_port(struct twrtp_endp *endp, const char *ip, 86 int twrtp_endp_bind_ip_port(struct twrtp_endp *endp, const char *ip,
87 uint16_t port); 87 uint16_t port);
88 88
89 void twrtp_endp_set_remote_ipv4(struct twrtp_endp *endp, 89 void twrtp_endp_set_remote_ipv4(struct twrtp_endp *endp,
90 const struct in_addr *ip, uint16_t port); 90 const struct in_addr *ip, uint16_t port);
91 void twrtp_endp_set_remote_ipv6(struct twrtp_endp *endp,
92 const struct in6_addr *ip6, uint16_t port);
93 void twrtp_endp_set_remote_sin(struct twrtp_endp *endp,
94 const struct sockaddr_in *sin);
95 void twrtp_endp_set_remote_sin6(struct twrtp_endp *endp,
96 const struct sockaddr_in6 *sin6);
91 97
92 int twrtp_endp_tx_quantum(struct twrtp_endp *endp, const uint8_t *payload, 98 int twrtp_endp_tx_quantum(struct twrtp_endp *endp, const uint8_t *payload,
93 unsigned payload_len, uint8_t payload_type, 99 unsigned payload_len, uint8_t payload_type,
94 bool marker, bool auto_marker, bool send_rtcp); 100 bool marker, bool auto_marker, bool send_rtcp);
95 void twrtp_endp_tx_skip(struct twrtp_endp *endp); 101 void twrtp_endp_tx_skip(struct twrtp_endp *endp);