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
cppcoro/lib/socket.cpp
Line 291 in a87e97f
is the correct code following?
ipv4Sockaddr.sin_port = htons(localEndPoint.to_ipv4().port()); ^^^^^
The text was updated successfully, but these errors were encountered:
Had the exact same issue.
My current workaround is to manually create an endpoint with a fixed port:
#ifdef _WIN32 #include <winsock2.h> #else #include <arpa/inet.h> #endif // ... auto endpoint = cppcoro::net::ipv4_endpoint::from_string("127.0.0.1:7001"); endpoint = cppcoro::net::ipv4_endpoint{endpoint.address(), htons(endpoint.port())};
The actual bound port is accessible from socket.local_endpoint() after the call to socket.bind(..).
socket.local_endpoint()
socket.bind(..)
Sorry, something went wrong.
No branches or pull requests
cppcoro/lib/socket.cpp
Line 291 in a87e97f
is the correct code following?
The text was updated successfully, but these errors were encountered: