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
e1388c3f
Commit
e1388c3f
authored
Aug 05, 2010
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix typos
parent
f2c968ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
agent/agent.c
agent/agent.c
+1
-1
agent/conncheck.c
agent/conncheck.c
+8
-8
No files found.
agent/agent.c
View file @
e1388c3f
...
@@ -1566,7 +1566,7 @@ static void _upnp_mapped_external_port (GUPnPSimpleIgd *self, gchar *proto,
...
@@ -1566,7 +1566,7 @@ static void _upnp_mapped_external_port (GUPnPSimpleIgd *self, gchar *proto,
agent_lock
();
agent_lock
();
nice_debug
(
"Agent %p : Sucessfully mapped %s:%d to %s:%d"
,
agent
,
local_ip
,
nice_debug
(
"Agent %p : Suc
c
essfully mapped %s:%d to %s:%d"
,
agent
,
local_ip
,
local_port
,
external_ip
,
external_port
);
local_port
,
external_ip
,
external_port
);
if
(
!
nice_address_set_from_string
(
&
localaddr
,
local_ip
))
if
(
!
nice_address_set_from_string
(
&
localaddr
,
local_ip
))
...
...
agent/conncheck.c
View file @
e1388c3f
...
@@ -174,7 +174,7 @@ static gboolean priv_conn_check_unfreeze_next (NiceAgent *agent)
...
@@ -174,7 +174,7 @@ static gboolean priv_conn_check_unfreeze_next (NiceAgent *agent)
/*
/*
* Unfreezes the next next connectivity check in the list after
* Unfreezes the next next connectivity check in the list after
* check 'success_check' has succesfully completed.
* check 'success_check' has succes
s
fully completed.
*
*
* See sect 7.1.2.2.3 (Updating Pair States) of ICE spec (ID-19).
* See sect 7.1.2.2.3 (Updating Pair States) of ICE spec (ID-19).
*
*
...
@@ -200,7 +200,7 @@ static void priv_conn_check_unfreeze_related (NiceAgent *agent, Stream *stream,
...
@@ -200,7 +200,7 @@ static void priv_conn_check_unfreeze_related (NiceAgent *agent, Stream *stream,
if
(
p
->
stream_id
==
ok_check
->
stream_id
)
{
if
(
p
->
stream_id
==
ok_check
->
stream_id
)
{
if
(
p
->
state
==
NICE_CHECK_FROZEN
&&
if
(
p
->
state
==
NICE_CHECK_FROZEN
&&
strcmp
(
p
->
foundation
,
ok_check
->
foundation
)
==
0
)
{
strcmp
(
p
->
foundation
,
ok_check
->
foundation
)
==
0
)
{
nice_debug
(
"Agent %p : Unfreezing check %p (after succesful check %p)."
,
agent
,
p
,
ok_check
);
nice_debug
(
"Agent %p : Unfreezing check %p (after succes
s
ful check %p)."
,
agent
,
p
,
ok_check
);
p
->
state
=
NICE_CHECK_WAITING
;
p
->
state
=
NICE_CHECK_WAITING
;
nice_debug
(
"Agent %p : pair %p state WAITING"
,
agent
,
p
);
nice_debug
(
"Agent %p : pair %p state WAITING"
,
agent
,
p
);
++
unfrozen
;
++
unfrozen
;
...
@@ -221,7 +221,7 @@ static void priv_conn_check_unfreeze_related (NiceAgent *agent, Stream *stream,
...
@@ -221,7 +221,7 @@ static void priv_conn_check_unfreeze_related (NiceAgent *agent, Stream *stream,
p
->
stream_id
!=
ok_check
->
stream_id
)
{
p
->
stream_id
!=
ok_check
->
stream_id
)
{
if
(
p
->
state
==
NICE_CHECK_FROZEN
&&
if
(
p
->
state
==
NICE_CHECK_FROZEN
&&
strcmp
(
p
->
foundation
,
ok_check
->
foundation
)
==
0
)
{
strcmp
(
p
->
foundation
,
ok_check
->
foundation
)
==
0
)
{
nice_debug
(
"Agent %p : Unfreezing check %p from stream %u (after succesful check %p)."
,
agent
,
p
,
s
->
id
,
ok_check
);
nice_debug
(
"Agent %p : Unfreezing check %p from stream %u (after succes
s
ful check %p)."
,
agent
,
p
,
s
->
id
,
ok_check
);
p
->
state
=
NICE_CHECK_WAITING
;
p
->
state
=
NICE_CHECK_WAITING
;
nice_debug
(
"Agent %p : pair %p state WAITING"
,
agent
,
p
);
nice_debug
(
"Agent %p : pair %p state WAITING"
,
agent
,
p
);
++
unfrozen
;
++
unfrozen
;
...
@@ -1725,7 +1725,7 @@ static guint priv_prune_pending_checks (Stream *stream, guint component_id)
...
@@ -1725,7 +1725,7 @@ static guint priv_prune_pending_checks (Stream *stream, guint component_id)
}
}
/*
/*
* Schedules a triggered check after a succesfully inbound
* Schedules a triggered check after a succes
s
fully inbound
* connectivity check. Implements ICE sect 7.2.1.4 "Triggered Checks" (ID-19).
* connectivity check. Implements ICE sect 7.2.1.4 "Triggered Checks" (ID-19).
*
*
* @param agent self pointer
* @param agent self pointer
...
@@ -1797,7 +1797,7 @@ static gboolean priv_schedule_triggered_check (NiceAgent *agent, Stream *stream,
...
@@ -1797,7 +1797,7 @@ static gboolean priv_schedule_triggered_check (NiceAgent *agent, Stream *stream,
/*
/*
* Sends a reply to an succesfully received STUN connectivity
* Sends a reply to an succes
s
fully received STUN connectivity
* check request. Implements parts of the ICE spec section 7.2 (STUN
* check request. Implements parts of the ICE spec section 7.2 (STUN
* Server Procedures).
* Server Procedures).
*
*
...
@@ -1833,7 +1833,7 @@ static void priv_reply_to_conn_check (NiceAgent *agent, Stream *stream, Componen
...
@@ -1833,7 +1833,7 @@ static void priv_reply_to_conn_check (NiceAgent *agent, Stream *stream, Componen
nice_socket_send
(
socket
,
toaddr
,
rbuf_len
,
(
const
gchar
*
)
rbuf
);
nice_socket_send
(
socket
,
toaddr
,
rbuf_len
,
(
const
gchar
*
)
rbuf
);
if
(
rcand
)
{
if
(
rcand
)
{
/* note: upon succesful check, make the reserve check immediately */
/* note: upon succes
s
ful check, make the reserve check immediately */
priv_schedule_triggered_check
(
agent
,
stream
,
component
,
socket
,
rcand
,
use_candidate
);
priv_schedule_triggered_check
(
agent
,
stream
,
component
,
socket
,
rcand
,
use_candidate
);
if
(
use_candidate
)
if
(
use_candidate
)
...
@@ -2178,7 +2178,7 @@ static gboolean priv_map_reply_to_discovery_request (NiceAgent *agent, StunMessa
...
@@ -2178,7 +2178,7 @@ static gboolean priv_map_reply_to_discovery_request (NiceAgent *agent, StunMessa
d
->
pending
=
FALSE
;
d
->
pending
=
FALSE
;
}
else
if
(
res
==
STUN_USAGE_BIND_RETURN_SUCCESS
)
{
}
else
if
(
res
==
STUN_USAGE_BIND_RETURN_SUCCESS
)
{
/* case: succesful binding discovery, create a new local candidate */
/* case: succes
s
ful binding discovery, create a new local candidate */
NiceAddress
niceaddr
;
NiceAddress
niceaddr
;
nice_address_set_from_sockaddr
(
&
niceaddr
,
nice_address_set_from_sockaddr
(
&
niceaddr
,
(
struct
sockaddr
*
)
&
sockaddr
);
(
struct
sockaddr
*
)
&
sockaddr
);
...
@@ -2290,7 +2290,7 @@ static gboolean priv_map_reply_to_relay_request (NiceAgent *agent, StunMessage *
...
@@ -2290,7 +2290,7 @@ static gboolean priv_map_reply_to_relay_request (NiceAgent *agent, StunMessage *
d
->
pending
=
FALSE
;
d
->
pending
=
FALSE
;
}
else
if
(
res
==
STUN_USAGE_TURN_RETURN_RELAY_SUCCESS
||
}
else
if
(
res
==
STUN_USAGE_TURN_RETURN_RELAY_SUCCESS
||
res
==
STUN_USAGE_TURN_RETURN_MAPPED_SUCCESS
)
{
res
==
STUN_USAGE_TURN_RETURN_MAPPED_SUCCESS
)
{
/* case: succesful allocate, create a new local candidate */
/* case: succes
s
ful allocate, create a new local candidate */
NiceAddress
niceaddr
;
NiceAddress
niceaddr
;
NiceCandidate
*
relay_cand
;
NiceCandidate
*
relay_cand
;
...
...
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