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
a54584b7
Commit
a54584b7
authored
Jul 22, 2016
by
Evelyn
Committed by
GitHub
Jul 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update mg_set_timer.md
parent
51907e26
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
mg_set_timer.md
docs/c-api/net.h/mg_set_timer.md
+4
-4
No files found.
docs/c-api/net.h/mg_set_timer.md
View file @
a54584b7
...
...
@@ -6,12 +6,12 @@ signature: |
double mg_set_timer(struct mg_connection *c, double timestamp);
---
Schedule MG_EV_TIMER event to be delivered at
`timestamp`
time.
`timestamp`
is
a UNIX time (a
number of seconds since Epoch). It is
Schedule
s an
MG_EV_TIMER event to be delivered at
`timestamp`
time.
`timestamp`
is
UNIX time (the
number of seconds since Epoch). It is
`double`
instead of
`time_t`
to allow for sub-second precision.
Return the old timer value.
Return
s
the old timer value.
Example: set connect timeout to 1.5 seconds:
Example: set
the
connect timeout to 1.5 seconds:
```
c = mg_connect(&mgr, "cesanta.com", ev_handler);
...
...
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