mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-04 05:39:05 +00:00
webclient.h: Update the state diagram after the tunnelling stuff
This commit is contained in:
parent
2be66e83a4
commit
5cfc5cd4f2
1 changed files with 25 additions and 7 deletions
|
|
@ -295,13 +295,27 @@ struct webclient_tls_ops
|
|||
* | |
|
||||
* webclient_perform
|
||||
* |
|
||||
* +---------------+
|
||||
* | |
|
||||
* | non-blocking mode,
|
||||
* | returns -EAGAIN
|
||||
* | |
|
||||
* v v
|
||||
* DONE IN-PROGRESS
|
||||
* |
|
||||
* +-- non-blocking mode, returns -EAGAIN ---> IN-PROGRESS
|
||||
* |
|
||||
* +-- returns -errno ---> DONE
|
||||
* |
|
||||
* returns 0
|
||||
* |
|
||||
* +-- !WEBCLIENT_FLAG_TUNNEL --> DONE
|
||||
* |
|
||||
* +-- WEBCLIENT_FLAG_TUNNEL, http_status 2xx -----> TUNNEL_ESTABLISHED
|
||||
* |
|
||||
* +-- WEBCLIENT_FLAG_TUNNEL, http_status others --> DONE
|
||||
*
|
||||
*
|
||||
* TUNNEL_ESTABLISHED
|
||||
* |
|
||||
* webclient_get_tunnel
|
||||
* |
|
||||
* v
|
||||
* DONE
|
||||
*
|
||||
*
|
||||
* (uninitialized):
|
||||
* After the memory for webclient_context is allocated,
|
||||
|
|
@ -341,6 +355,10 @@ struct webclient_tls_ops
|
|||
*
|
||||
* If the application wants to reuse the context for another request,
|
||||
* it should initialize it with webclient_set_defaults() again.
|
||||
*
|
||||
* TUNNEL_ESTABLISHED
|
||||
* webclient_get_tunnel() should be called exactly once to return
|
||||
* the established tunnel.
|
||||
*/
|
||||
|
||||
struct webclient_context
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue