webclient.h: Update the state diagram after the tunnelling stuff
This commit is contained in:
parent
2be66e83a4
commit
5cfc5cd4f2
@ -295,13 +295,27 @@ struct webclient_tls_ops
|
|||||||
* | |
|
* | |
|
||||||
* webclient_perform
|
* webclient_perform
|
||||||
* |
|
* |
|
||||||
* +---------------+
|
* |
|
||||||
* | |
|
* +-- non-blocking mode, returns -EAGAIN ---> IN-PROGRESS
|
||||||
* | non-blocking mode,
|
* |
|
||||||
* | returns -EAGAIN
|
* +-- returns -errno ---> DONE
|
||||||
* | |
|
* |
|
||||||
* v v
|
* returns 0
|
||||||
* DONE IN-PROGRESS
|
* |
|
||||||
|
* +-- !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):
|
* (uninitialized):
|
||||||
* After the memory for webclient_context is allocated,
|
* 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,
|
* If the application wants to reuse the context for another request,
|
||||||
* it should initialize it with webclient_set_defaults() again.
|
* 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
|
struct webclient_context
|
||||||
|
Loading…
Reference in New Issue
Block a user