Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
libnice
libnice
Commits
02fd911e
Commit
02fd911e
authored
Oct 06, 2008
by
Youness Alaoui
Browse files
Rename component_find_udp_socket_by_fd into component_find_socket_by_fd
parent
01e72828
Changes
4
Hide whitespace changes
Inline
Side-by-side
agent/agent.c
View file @
02fd911e
...
...
@@ -1423,7 +1423,7 @@ nice_agent_recv (
{
NiceSocket
*
socket
;
socket
=
component_find_
udp_
socket_by_fd
(
component
,
j
);
socket
=
component_find_socket_by_fd
(
component
,
j
);
g_assert
(
socket
);
len
=
_nice_agent_recv
(
agent
,
stream
,
component
,
socket
,
...
...
@@ -1464,7 +1464,7 @@ nice_agent_recv_sock (
goto
done
;
}
socket
=
component_find_
udp_
socket_by_fd
(
component
,
sock
);
socket
=
component_find_socket_by_fd
(
component
,
sock
);
g_assert
(
socket
);
ret
=
_nice_agent_recv
(
agent
,
stream
,
component
,
...
...
@@ -1565,7 +1565,7 @@ nice_agent_poll_read (
Stream
*
s
=
i
->
data
;
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
)
{
stream
=
s
;
...
...
agent/component.c
View file @
02fd911e
...
...
@@ -119,8 +119,8 @@ component_free (Component *cmp)
* Note: there might be multiple sockets using the same
* handle.
*/
Nice
UDP
Socket
*
component_find_
udp_
socket_by_fd
(
Component
*
component
,
guint
fd
)
NiceSocket
*
component_find_socket_by_fd
(
Component
*
component
,
guint
fd
)
{
GSList
*
i
;
...
...
agent/component.h
View file @
02fd911e
...
...
@@ -104,8 +104,8 @@ component_new (
void
component_free
(
Component
*
cmp
);
Nice
UDP
Socket
*
component_find_
udp_
socket_by_fd
(
Component
*
component
,
guint
fd
);
NiceSocket
*
component_find_socket_by_fd
(
Component
*
component
,
guint
fd
);
gboolean
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)
/**
* Returns the component that owns a
UDP
socket using
* Returns the component that owns a socket using
* handle 'fd'.
*
* See also component_find_
udp_
socket_by_fd()
* See also component_find_socket_by_fd()
*/
Component
*
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
)
{
Component
*
component
=
i
->
data
;
Nice
UDP
Socket
*
socket
=
component_find_
udp_
socket_by_fd
(
component
,
fd
);
NiceSocket
*
socket
=
component_find_socket_by_fd
(
component
,
fd
);
if
(
socket
)
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