Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
1a171652
Commit
1a171652
authored
Dec 18, 2013
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sending messages every 10 seconds, to allow mongoose send PINGs
parent
b6d968f0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
qcomm.c
examples/qcomm.c
+3
-2
No files found.
examples/qcomm.c
View file @
1a171652
#include <unistd.h>
#include <unistd.h>
#include <string.h>
#include <string.h>
#include "core.h"
#include "mongoose.h"
static
void
iterate_callback
(
struct
mg_connection
*
c
,
void
*
param
)
{
static
void
iterate_callback
(
struct
mg_connection
*
c
,
void
*
param
)
{
if
(
c
->
is_websocket
)
{
if
(
c
->
is_websocket
)
{
...
@@ -17,7 +18,7 @@ static void *timer_thread(void *param) {
...
@@ -17,7 +18,7 @@ static void *timer_thread(void *param) {
int
i
;
int
i
;
for
(
i
=
0
;
i
<
9999999
;
i
++
)
{
for
(
i
=
0
;
i
<
9999999
;
i
++
)
{
sleep
(
1
);
sleep
(
1
0
);
mg_iterate_over_connections
(
server
,
iterate_callback
,
&
i
);
mg_iterate_over_connections
(
server
,
iterate_callback
,
&
i
);
}
}
...
...
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