Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
7715ef44
Commit
7715ef44
authored
Feb 05, 2007
by
Dafydd Harries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pass stream to _handle_stun
darcs-hash:20070205124744-c9803-98f1dc826646eff707be8f06157405d1b631133a.gz
parent
c0f689a4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
agent/agent.c
agent/agent.c
+10
-8
No files found.
agent/agent.c
View file @
7715ef44
...
@@ -371,6 +371,7 @@ _stream_lookup (NiceAgent *agent, guint stream_id)
...
@@ -371,6 +371,7 @@ _stream_lookup (NiceAgent *agent, guint stream_id)
static
void
static
void
_handle_stun
(
_handle_stun
(
NiceAgent
*
agent
,
NiceAgent
*
agent
,
Stream
*
stream
,
NiceCandidate
*
local
,
NiceCandidate
*
local
,
struct
sockaddr_in
from
,
struct
sockaddr_in
from
,
StunMessage
*
msg
)
StunMessage
*
msg
)
...
@@ -548,9 +549,6 @@ _nice_agent_recv (
...
@@ -548,9 +549,6 @@ _nice_agent_recv (
* version number is 2. The top two bits of a STUN message are always 0.
* version number is 2. The top two bits of a STUN message are always 0.
*/
*/
if
((
buf
[
0
]
&
0xc0
)
==
0x80
)
{
/* looks like RTP */
Stream
*
stream
;
Stream
*
stream
;
stream
=
_stream_lookup
(
agent
,
candidate
->
stream_id
);
stream
=
_stream_lookup
(
agent
,
candidate
->
stream_id
);
...
@@ -559,6 +557,10 @@ _nice_agent_recv (
...
@@ -559,6 +557,10 @@ _nice_agent_recv (
/* odd: a candidate that doesn't belong to a stream */
/* odd: a candidate that doesn't belong to a stream */
return
;
return
;
if
((
buf
[
0
]
&
0xc0
)
==
0x80
)
{
/* looks like RTP */
/* XXX: should a NULL data handler be permitted? */
/* XXX: should a NULL data handler be permitted? */
g_assert
(
stream
->
handle_recv
!=
NULL
);
g_assert
(
stream
->
handle_recv
!=
NULL
);
stream
->
handle_recv
(
agent
,
candidate
->
stream_id
,
stream
->
handle_recv
(
agent
,
candidate
->
stream_id
,
...
@@ -578,7 +580,7 @@ _nice_agent_recv (
...
@@ -578,7 +580,7 @@ _nice_agent_recv (
/* XXX: handle the case where the incoming packet is a response for a
/* XXX: handle the case where the incoming packet is a response for a
* binding request we sent */
* binding request we sent */
_handle_stun
(
agent
,
candidate
,
from
,
msg
);
_handle_stun
(
agent
,
stream
,
candidate
,
from
,
msg
);
stun_message_free
(
msg
);
stun_message_free
(
msg
);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment