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

Provide a way to get the automatically-selected port number #15

Open
GoogleCodeExporter opened this issue Aug 25, 2015 · 0 comments
Open

Comments

@GoogleCodeExporter
Copy link

I started with the code in SimpleReceive.cpp, and instead of specifying port 
7000, I changed the port specification to IpEndpointName::ANY_PORT, so that the 
system automatically chooses an available port.

However, I couldn't find a way to retrieve the actual port number assigned by 
the system.

The attached patch provides a UdpSocket::Port() method, which can be called 
after Bind() to retrieve the port.

Original issue reported on code.google.com by smokris on 4 Jan 2014 at 9:31

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant