美文网首页
W801 代码阅读:HttpServer

W801 代码阅读:HttpServer

作者: 集韵增广 | 来源:发表于2022-02-16 15:47 被阅读0次

配网,代码流程:

| -> t-webcfg: demo_console_info_t, DEMO_CONNECT_NET
| -> demo_webserver_config()
| -> tls_wifi_set_oneshot_flag()
| -> tls_wifi_start_oneshot()
| -> tls_oneshot_task_create()
| -> tls_oneshot_task_handle()
| -> tls_webserver_init()
| -> httpd_init(80) -> http_set_cgi_handlers -> do_cgi_config : (tCGI Cgi[8]=)
| -> tcp_accept(web_pcb, http_accept)
| -> tcp_recv(pcb, http_recv)
| -> extract_html_recive(HtmlBegin,hs,pcb)

web get响应和对应的参数控制:

| -> httpd_init(80)
| -> tcp_accept
| -> http_accept
| -> http_recv
| -> extract_html_recive
| -> g_pCGIs[i].pfnCGIHandler
| -> do_cgi_config

相关文章

网友评论

      本文标题:W801 代码阅读:HttpServer

      本文链接:https://www.haomeiwen.com/subject/vthhlrtx.html