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
02fd911e
Commit
02fd911e
authored
Oct 06, 2008
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename component_find_udp_socket_by_fd into component_find_socket_by_fd
parent
01e72828
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
11 deletions
+11
-11
agent/agent.c
agent/agent.c
+3
-3
agent/component.c
agent/component.c
+2
-2
agent/component.h
agent/component.h
+2
-2
agent/stream.c
agent/stream.c
+4
-4
No files found.
agent/agent.c
View file @
02fd911e
...
@@ -1423,7 +1423,7 @@ nice_agent_recv (
...
@@ -1423,7 +1423,7 @@ nice_agent_recv (
{
{
NiceSocket
*
socket
;
NiceSocket
*
socket
;
socket
=
component_find_
udp_
socket_by_fd
(
component
,
j
);
socket
=
component_find_socket_by_fd
(
component
,
j
);
g_assert
(
socket
);
g_assert
(
socket
);
len
=
_nice_agent_recv
(
agent
,
stream
,
component
,
socket
,
len
=
_nice_agent_recv
(
agent
,
stream
,
component
,
socket
,
...
@@ -1464,7 +1464,7 @@ nice_agent_recv_sock (
...
@@ -1464,7 +1464,7 @@ nice_agent_recv_sock (
goto
done
;
goto
done
;
}
}
socket
=
component_find_
udp_
socket_by_fd
(
component
,
sock
);
socket
=
component_find_socket_by_fd
(
component
,
sock
);
g_assert
(
socket
);
g_assert
(
socket
);
ret
=
_nice_agent_recv
(
agent
,
stream
,
component
,
ret
=
_nice_agent_recv
(
agent
,
stream
,
component
,
...
@@ -1565,7 +1565,7 @@ nice_agent_poll_read (
...
@@ -1565,7 +1565,7 @@ nice_agent_poll_read (
Stream
*
s
=
i
->
data
;
Stream
*
s
=
i
->
data
;
Component
*
c
=
stream_find_component_by_fd
(
s
,
j
);
Component
*
c
=
stream_find_component_by_fd
(
s
,
j
);
socket
=
component_find_
udp_
socket_by_fd
(
c
,
j
);
socket
=
component_find_socket_by_fd
(
c
,
j
);
if
(
socket
!=
NULL
)
{
if
(
socket
!=
NULL
)
{
stream
=
s
;
stream
=
s
;
...
...
agent/component.c
View file @
02fd911e
...
@@ -119,8 +119,8 @@ component_free (Component *cmp)
...
@@ -119,8 +119,8 @@ component_free (Component *cmp)
* Note: there might be multiple sockets using the same
* Note: there might be multiple sockets using the same
* handle.
* handle.
*/
*/
Nice
UDP
Socket
*
NiceSocket
*
component_find_
udp_
socket_by_fd
(
Component
*
component
,
guint
fd
)
component_find_socket_by_fd
(
Component
*
component
,
guint
fd
)
{
{
GSList
*
i
;
GSList
*
i
;
...
...
agent/component.h
View file @
02fd911e
...
@@ -104,8 +104,8 @@ component_new (
...
@@ -104,8 +104,8 @@ component_new (
void
void
component_free
(
Component
*
cmp
);
component_free
(
Component
*
cmp
);
Nice
UDP
Socket
*
NiceSocket
*
component_find_
udp_
socket_by_fd
(
Component
*
component
,
guint
fd
);
component_find_socket_by_fd
(
Component
*
component
,
guint
fd
);
gboolean
gboolean
component_find_pair
(
Component
*
cmp
,
NiceAgent
*
agent
,
const
gchar
*
lfoundation
,
const
gchar
*
rfoundation
,
CandidatePair
*
pair
);
component_find_pair
(
Component
*
cmp
,
NiceAgent
*
agent
,
const
gchar
*
lfoundation
,
const
gchar
*
rfoundation
,
CandidatePair
*
pair
);
...
...
agent/stream.c
View file @
02fd911e
...
@@ -130,10 +130,10 @@ stream_all_components_ready (const Stream *stream)
...
@@ -130,10 +130,10 @@ stream_all_components_ready (const Stream *stream)
/**
/**
* Returns the component that owns a
UDP
socket using
* Returns the component that owns a socket using
* handle 'fd'.
* handle 'fd'.
*
*
* See also component_find_
udp_
socket_by_fd()
* See also component_find_socket_by_fd()
*/
*/
Component
*
Component
*
stream_find_component_by_fd
(
const
Stream
*
stream
,
guint
fd
)
stream_find_component_by_fd
(
const
Stream
*
stream
,
guint
fd
)
...
@@ -142,8 +142,8 @@ stream_find_component_by_fd (const Stream *stream, guint fd)
...
@@ -142,8 +142,8 @@ stream_find_component_by_fd (const Stream *stream, guint fd)
for
(
i
=
stream
->
components
;
i
;
i
=
i
->
next
)
{
for
(
i
=
stream
->
components
;
i
;
i
=
i
->
next
)
{
Component
*
component
=
i
->
data
;
Component
*
component
=
i
->
data
;
Nice
UDP
Socket
*
socket
=
NiceSocket
*
socket
=
component_find_
udp_
socket_by_fd
(
component
,
fd
);
component_find_socket_by_fd
(
component
,
fd
);
if
(
socket
)
if
(
socket
)
return
component
;
return
component
;
}
}
...
...
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