summaryrefslogtreecommitdiff
path: root/socket/udp-turn.h
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2016-02-07 19:41:52 -0500
committerOlivier CrĂȘte <olivier.crete@collabora.com>2016-05-26 15:28:17 -0400
commit501f9a82e47076cda0deab8cf54758b608e899aa (patch)
treea774966bbbef5f67d7a39e5464c9509796d8c718 /socket/udp-turn.h
parent82ea4d71728af95cf0c7bff478f69342a461134b (diff)
downloadlibnice-501f9a82e47076cda0deab8cf54758b608e899aa.tar.gz
turn: Cache the nonce & realm to remove useless round trips
Instead of re-discovering the nonce and realm for every request, cache them in th socket.
Diffstat (limited to 'socket/udp-turn.h')
-rw-r--r--socket/udp-turn.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/socket/udp-turn.h b/socket/udp-turn.h
index ba31636..b1eeeb4 100644
--- a/socket/udp-turn.h
+++ b/socket/udp-turn.h
@@ -75,6 +75,9 @@ nice_udp_turn_socket_set_ms_realm(NiceSocket *sock, StunMessage *msg);
void
nice_udp_turn_socket_set_ms_connection_id (NiceSocket *sock, StunMessage *msg);
+void
+nice_udp_turn_socket_cache_realm_nonce (NiceSocket *sock, StunMessage *msg);
+
G_END_DECLS