Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
mongoose
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Gitlab has been updated. More info
here
.
Show more breadcrumbs
Ganil-acq
GANILinux
linux-service
library
mongoose
Commits
bd723bdc
Commit
bd723bdc
authored
10 years ago
by
Sergey Lyubka
Browse files
Options
Downloads
Patches
Plain Diff
Removed dead code in websocket2.c
parent
5e570317
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/websocket2.c
+0
-12
0 additions, 12 deletions
examples/websocket2.c
with
0 additions
and
12 deletions
examples/websocket2.c
+
0
−
12
View file @
bd723bdc
...
@@ -17,18 +17,6 @@ static void signal_handler(int sig_num) {
...
@@ -17,18 +17,6 @@ static void signal_handler(int sig_num) {
s_signal_received
=
sig_num
;
s_signal_received
=
sig_num
;
}
}
#if 0
static int iterate_callback(struct mg_connection *c, enum mg_event ev) {
if (ev == MG_POLL && c->is_websocket) {
char buf[20];
int len = snprintf(buf, sizeof(buf), "%lu",
(unsigned long) * (time_t *) c->callback_param);
mg_websocket_write(c, 1, buf, len);
}
return MG_TRUE;
}
#endif
static
void
handle_websocket_message
(
struct
mg_connection
*
conn
)
{
static
void
handle_websocket_message
(
struct
mg_connection
*
conn
)
{
struct
conn_data
*
d
=
(
struct
conn_data
*
)
conn
->
connection_param
;
struct
conn_data
*
d
=
(
struct
conn_data
*
)
conn
->
connection_param
;
struct
mg_connection
*
c
;
struct
mg_connection
*
c
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment