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
7abf0f98
Commit
7abf0f98
authored
Oct 14, 2008
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove interface and socket from CandidateDiscovery as they are not used
parent
5238086a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
8 deletions
+2
-8
agent/agent.c
agent/agent.c
+0
-4
agent/discovery.c
agent/discovery.c
+2
-2
agent/discovery.h
agent/discovery.h
+0
-2
No files found.
agent/agent.c
View file @
7abf0f98
...
...
@@ -659,10 +659,8 @@ priv_add_new_candidate_discovery_stun (NiceAgent *agent,
if
(
modified_list
)
{
cdisco
->
type
=
NICE_CANDIDATE_TYPE_SERVER_REFLEXIVE
;
cdisco
->
socket
=
host_candidate
->
sockptr
->
fileno
;
cdisco
->
nicesock
=
host_candidate
->
sockptr
;
cdisco
->
server
=
server
;
cdisco
->
interface
=
addr
;
cdisco
->
stream
=
stream
;
cdisco
->
component
=
stream_find_component_by_id
(
stream
,
component_id
);
cdisco
->
agent
=
agent
;
...
...
@@ -695,10 +693,8 @@ priv_add_new_candidate_discovery_turn (NiceAgent *agent,
if
(
modified_list
)
{
cdisco
->
type
=
NICE_CANDIDATE_TYPE_RELAYED
;
cdisco
->
socket
=
host_candidate
->
sockptr
->
fileno
;
cdisco
->
nicesock
=
host_candidate
->
sockptr
;
cdisco
->
server
=
server
;
cdisco
->
interface
=
addr
;
cdisco
->
stream
=
stream
;
cdisco
->
component
=
stream_find_component_by_id
(
stream
,
component_id
);
cdisco
->
agent
=
agent
;
...
...
agent/discovery.c
View file @
7abf0f98
...
...
@@ -705,8 +705,8 @@ static gboolean priv_discovery_tick_unlocked (gpointer pointer)
{
gchar
tmpbuf
[
INET6_ADDRSTRLEN
];
nice_address_to_string
(
&
cand
->
server
,
tmpbuf
);
nice_debug
(
"Agent %p : discovery - scheduling cand type %u addr %s
and socket %d.
\n
"
,
agent
,
cand
->
type
,
tmpbuf
,
cand
->
socket
);
nice_debug
(
"Agent %p : discovery - scheduling cand type %u addr %s
.
\n
"
,
agent
,
cand
->
type
,
tmpbuf
);
}
if
(
nice_address_is_valid
(
&
cand
->
server
)
&&
(
cand
->
type
==
NICE_CANDIDATE_TYPE_SERVER_REFLEXIVE
||
...
...
agent/discovery.h
View file @
7abf0f98
...
...
@@ -47,10 +47,8 @@ struct _CandidateDiscovery
{
NiceAgent
*
agent
;
/**< back pointer to owner */
NiceCandidateType
type
;
/**< candidate type STUN or TURN */
guint
socket
;
/**< XXX: should be taken from local cand: existing socket to use */
NiceSocket
*
nicesock
;
/**< XXX: should be taken from local cand: existing socket to use */
NiceAddress
server
;
/**< STUN/TURN server address */
NiceAddress
*
interface
;
/**< Address of local interface */
GTimeVal
next_tick
;
/**< next tick timestamp */
gboolean
pending
;
/**< is discovery in progress? */
gboolean
done
;
/**< is discovery complete? */
...
...
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