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
3541521a
Commit
3541521a
authored
Jan 30, 2009
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Porting stun usage bind to use the new StunUsageTimerReturn API
parent
dc786900
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
stun/usages/bind.c
stun/usages/bind.c
+4
-2
No files found.
stun/usages/bind.c
View file @
3541521a
...
...
@@ -205,10 +205,10 @@ StunUsageBindReturn stun_usage_bind_run (const struct sockaddr *srv,
ret
=
stun_trans_poll
(
&
trans
,
delay
);
if
(
ret
==
EAGAIN
)
{
switch
(
stun_timer_refresh
(
&
timer
))
{
case
-
1
:
case
STUN_USAGE_TIMER_RETURN_TIMEOUT
:
stun_debug
(
"STUN transaction failed: time out.
\n
"
);
return
STUN_USAGE_BIND_RETURN_TIMEOUT
;
// fatal error!
case
0
:
case
STUN_USAGE_TIMER_RETURN_RETRANSMIT
:
stun_debug
(
"STUN transaction retransmitted (timeout %dms).
\n
"
,
stun_timer_remainder
(
&
timer
));
val
=
stun_trans_send
(
&
trans
,
req_buf
,
len
);
...
...
@@ -218,6 +218,8 @@ StunUsageBindReturn stun_usage_bind_run (const struct sockaddr *srv,
}
ret
=
EAGAIN
;
continue
;
case
STUN_USAGE_TIMER_RETURN_SUCCESS
:
break
;
}
}
val
=
stun_trans_recv
(
&
trans
,
buf
,
sizeof
(
buf
));
...
...
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