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

Expose server port #192

Merged
merged 1 commit into from
Jul 13, 2023
Merged

Expose server port #192

merged 1 commit into from
Jul 13, 2023

Conversation

BrandenEK
Copy link
Contributor

Exposes the actual port that the server is running on for the SimpleTcpServer class. This is useful if you initialize the server with a port of 0 so it chooses any available port, but then you need to find out the actual port after it has been created.

Not sure if this is how you want to implement it or if you even do at all, but I needed this for a project I was working on so I figured I may as well push it.

@jchristn jchristn merged commit 1c399d0 into jchristn:master Jul 13, 2023
@jchristn
Copy link
Owner

Thank you @BrandenEK this is great! Merging and publishing now

@jchristn
Copy link
Owner

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

Successfully merging this pull request may close these issues.

2 participants