Commit 1d25c460 authored by Dafydd Harries's avatar Dafydd Harries
Browse files

keep track of where incoming valid connectivity checks went from/to

darcs-hash:20070205125036-c9803-7b57fca93d5c01b8df875381d01c3d54e0b73cec.gz
parent 7715ef44
......@@ -36,6 +36,10 @@ typedef struct _Component Component;
struct _Component
{
ComponentType type;
/* the local candidate that last received a valid connectivity check */
NiceCandidate *active_candidate;
/* the remote address that the last connectivity check came from */
NiceAddress *peer_addr;
guint id;
};
......@@ -463,6 +467,21 @@ _handle_stun (
goto ERROR;
RESPOND:
/* update candidate/peer affinity */
{
Component *component;
component = stream->component;
g_assert (component);
component->active_candidate = local;
component->peer_addr = &remote->addr;
}
/* send STUN response */
{
StunMessage *response;
guint len;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment