Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libwebsockets
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Fork
libwebsockets
Commits
508946ce
Commit
508946ce
authored
12 years ago
by
Andy Green
Browse files
Options
Downloads
Patches
Plain Diff
api make close api private only
Signed-off-by:
Andy Green
<
andy.green@linaro.org
>
parent
70edd6fb
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
changelog
+5
-0
5 additions, 0 deletions
changelog
lib/libwebsockets.h
+0
-4
0 additions, 4 deletions
lib/libwebsockets.h
lib/private-libwebsockets.h
+4
-0
4 additions, 0 deletions
lib/private-libwebsockets.h
test-server/test-server.c
+1
-2
1 addition, 2 deletions
test-server/test-server.c
with
10 additions
and
6 deletions
changelog
+
5
−
0
View file @
508946ce
...
...
@@ -82,6 +82,11 @@ User api removals
connection you must do so from the user callback and by returning
-1 from there.
- libwebsocket_close_and_free_session() is now private to the library code
only and not exposed for user code. If you want to close the
connection, you must do so from the user callback by returning -1
from there.
New features
------------
...
...
This diff is collapsed.
Click to expand it.
lib/libwebsockets.h
+
0
−
4
View file @
508946ce
...
...
@@ -917,10 +917,6 @@ libwebsockets_get_peer_addresses(struct libwebsocket_context *context,
struct
libwebsocket
*
wsi
,
int
fd
,
char
*
name
,
int
name_len
,
char
*
rip
,
int
rip_len
);
LWS_EXTERN
void
libwebsocket_close_and_free_session
(
struct
libwebsocket_context
*
context
,
struct
libwebsocket
*
wsi
,
enum
lws_close_status
);
LWS_EXTERN
int
libwebsockets_get_random
(
struct
libwebsocket_context
*
context
,
void
*
buf
,
int
len
);
...
...
This diff is collapsed.
Click to expand it.
lib/private-libwebsockets.h
+
4
−
0
View file @
508946ce
...
...
@@ -401,6 +401,10 @@ struct libwebsocket {
#endif
};
extern
void
libwebsocket_close_and_free_session
(
struct
libwebsocket_context
*
context
,
struct
libwebsocket
*
wsi
,
enum
lws_close_status
);
#ifndef LWS_LATENCY
static
inline
void
lws_latency
(
struct
libwebsocket_context
*
context
,
struct
libwebsocket
*
wsi
,
const
char
*
action
,
...
...
This diff is collapsed.
Click to expand it.
test-server/test-server.c
+
1
−
2
View file @
508946ce
...
...
@@ -287,8 +287,7 @@ callback_dumb_increment(struct libwebsocket_context *context,
}
if
(
close_testing
&&
pss
->
number
==
50
)
{
lwsl_info
(
"close tesing limit, closing
\n
"
);
libwebsocket_close_and_free_session
(
context
,
wsi
,
LWS_CLOSE_STATUS_NORMAL
);
return
-
1
;
}
break
;
...
...
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