accept_request中直接将指针赋给client
Author: CodePYJCreated Jul 25, 2023Updated Feb 5, 2024
main函数中 ”accept_request(&client_sock);“ 将地址传入。 accept_request函数中 ”int client = (intptr_t)arg;“ 将地址赋给client,将导致recv读不到数据。
Source: EZLippi/Tinyhttpd
main函数中 ”accept_request(&client_sock);“ 将地址传入。 accept_request函数中 ”int client = (intptr_t)arg;“ 将地址赋给client,将导致recv读不到数据。
Source: EZLippi/Tinyhttpd