We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
main函数中 ”accept_request(&client_sock);“ 将地址传入。 accept_request函数中 ”int client = (intptr_t)arg;“ 将地址赋给client,将导致recv读不到数据。
The text was updated successfully, but these errors were encountered:
是的呢,我被这个地方卡了好久,recv()函数的返回值是-1,页面出不来就是这个问题, 需要将accept_request()函数中:
accept_request()
int client = (intptr_t)arg;
改成:
int client = *(int *)arg;
Sorry, something went wrong.
No branches or pull requests
main函数中 ”accept_request(&client_sock);“ 将地址传入。
accept_request函数中 ”int client = (intptr_t)arg;“ 将地址赋给client,将导致recv读不到数据。
The text was updated successfully, but these errors were encountered: