Skip to content
New issue

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

berkeley.cpp [BUG] #3

Closed
nil-ref opened this issue Jun 21, 2022 · 2 comments
Closed

berkeley.cpp [BUG] #3

nil-ref opened this issue Jun 21, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@nil-ref
Copy link

nil-ref commented Jun 21, 2022

berkeley.cpp: 82: SOCKET WSKAPI accept

return WSKSetLastError(Status), (!NT_SUCCESS(Status) ? SOCKET_ERROR : SOCKET_SUCCESS);
=>
return WSKSetLastError(Status), Socket;

@nil-ref nil-ref added the bug Something isn't working label Jun 21, 2022
@nil-ref
Copy link
Author

nil-ref commented Jun 22, 2022

berkeley.cpp: 19: SOCKET WSKAPI socket

When protocol is 0.
+++
if (!protocol){
switch (type){
case SOCK_DGRAM: protocol = IPPROTO_UDP; break;
case SOCK_STREAM: protocol = IPPROTO_TCP; break;
}
}

@MeeSong
Copy link

MeeSong commented Jun 23, 2022

Thanks, it's fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants