Skip to content

Add is_bound() helper for checking server bind state#1065

Merged
gittiver merged 1 commit into
CrowCpp:masterfrom
maredman:bound-address-accessor
Jul 23, 2025
Merged

Add is_bound() helper for checking server bind state#1065
gittiver merged 1 commit into
CrowCpp:masterfrom
maredman:bound-address-accessor

Conversation

@maredman
Copy link
Copy Markdown

I have a use case where my application passes port 0 to Crow, so that the system chooses an available port dynamically. After that, I need to determine which address and port Crow actually bound to, using bindaddr().

However, I want to avoid calling bindaddr() until I know that Crow has successfully bound the socket. To support this, this PR adds a small helper function is_bound() that lets an application check whether Crow has completed its bind step.

@gittiver gittiver merged commit 584560f into CrowCpp:master Jul 23, 2025
13 checks passed
@maredman maredman deleted the bound-address-accessor branch July 23, 2025 12:59
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.

3 participants