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
3244df9c
Commit
3244df9c
authored
8 years ago
by
Artem Bulavin
Committed by
Cesanta Bot
8 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added UI response on authentication, fixed non-clickable buttons
PUBLISHED_FROM=a4666982707fcc96cfe6e75903cab9ac225351e4
parent
1f75081f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
conn-flags.md
docs/design-concept/conn-flags.md
+12
-12
No files found.
docs/design-concept/conn-flags.md
View file @
3244df9c
...
...
@@ -3,9 +3,9 @@ title: Connection flags
---
Each connection has a
`flags`
bit field. Some flags are set by Mongoose, for
example if a user creates an outbound UDP connection using
`udp://1.2.3.4:5678`
address, Mongoose is going to set
`MG_F_UDP`
flag for that connection. Other
flags are meant to be set only by user event handler to tell Mongoose how to
example if a user creates an outbound UDP connection using
a
`udp://1.2.3.4:5678`
address, Mongoose is going to set
a
`MG_F_UDP`
flag for that connection. Other
flags are meant to be set only by
the
user event handler to tell Mongoose how to
behave. Below is a list of connection flags that are meant to be set by event
handlers:
...
...
@@ -14,19 +14,19 @@ handlers:
connection will be closed.
*
`MG_F_BUFFER_BUT_DONT_SEND`
tells Mongoose to append data to the
`send_mbuf`
but hold on sending it, because the data will be modified later and then will
be sent by clearing
`MG_F_BUFFER_BUT_DONT_SEND`
flag.
be sent by clearing
the
`MG_F_BUFFER_BUT_DONT_SEND`
flag.
*
`MG_F_CLOSE_IMMEDIATELY`
tells Mongoose to close the connection immediately,
usually after
some error
usually after
an error.
*
`MG_F_USER_1`
,
`MG_F_USER_2`
,
`MG_F_USER_3`
,
`MG_F_USER_4`
could be used by a
developer to store a
pplication-specific state
developer to store a
n application-specific state.
Flags below are set by Mongoose:
*
`MG_F_SSL_HANDSHAKE_DONE`
SSL only, set when SSL handshake is done.
*
`MG_F_CONNECTING`
set when connection is in connecting state after
*
`MG_F_CONNECTING`
set when
the
connection is in connecting state after
`mg_connect()`
call but connect did not finish yet.
*
`MG_F_LISTENING`
set for all listening connections
*
`MG_F_UDP`
set if
connection is UDP
*
`MG_F_IS_WEBSOCKET`
set if
connection is a Websocket connection
*
`MG_F_WEBSOCKET_NO_DEFRAG`
should be set by a user if user wants to switch
off automatic Web
socket frame defragmentation
*
`MG_F_LISTENING`
set for all listening connections
.
*
`MG_F_UDP`
set if
the connection is UDP.
*
`MG_F_IS_WEBSOCKET`
set if
the connection is a WebSocket connection.
*
`MG_F_WEBSOCKET_NO_DEFRAG`
should be set by a user if
the
user wants to switch
off automatic Web
Socket frame defragmentation.
This diff is collapsed.
Click to expand it.
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