mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-31 13:00:49 +00:00
Apply Mongoose docs edits by Ev
PUBLISHED_FROM=5cd78790a03580aa23dd3d2d8b825ad449083cc2
This commit is contained in:
1 parent
4f210cd8eb
commit
849ec1684a
94 files changed
+509
-491
No files matched your search
@@ -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
|
||||
Schedules 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.
|
||||
Returns 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);
|
||||
|
||||
Reference in new issue
Block a user