Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
mongoose
Commits
5c7aeac1
Commit
5c7aeac1
authored
Apr 13, 2015
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #509 from cesanta/Fix_mjpg_streamer_example
Fix mjpg_streamer example
parents
2ff2c369
09a80628
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
mongoose.c
mongoose.c
+5
-0
mongoose.h
mongoose.h
+2
-1
No files found.
mongoose.c
View file @
5c7aeac1
...
...
@@ -5362,6 +5362,11 @@ static void mg_ev_handler(struct ns_connection *nc, int ev, void *p) {
write_terminating_chunk
(
conn
);
}
close_local_endpoint
(
conn
);
/*
* MG_POLL callback returned MG_TRUE,
* i.e. data is sent, set corresponding flag
*/
conn
->
ns_conn
->
flags
|=
NSF_FINISHED_SENDING_DATA
;
}
if
(
conn
->
endpoint_type
==
EP_FILE
)
{
...
...
mongoose.h
View file @
5c7aeac1
...
...
@@ -60,7 +60,8 @@ struct mg_connection {
struct
mg_server
;
// Opaque structure describing server instance
enum
mg_result
{
MG_FALSE
,
MG_TRUE
,
MG_MORE
};
enum
mg_event
{
MG_POLL
=
100
,
// Callback return value is ignored
MG_POLL
=
100
,
// If callback returns MG_TRUE connection closes
// after all of data is sent
MG_CONNECT
,
// If callback returns MG_FALSE, connect fails
MG_AUTH
,
// If callback returns MG_FALSE, authentication fails
MG_REQUEST
,
// If callback returns MG_FALSE, Mongoose continues with req
...
...
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