bloomberg / bloomberg/ntf-core

`ntsi::StreamSocket::bind` should provide an overload without requiring `reuseAddress`

Open
#168 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
99
Forks
33
PR merge metrics
No merged PRs in 30d

Description

`ntsi::StreamSocket::bind` requires `reuseAddress` to be specified when called. This is problematic when the value of `reuseAddress` has already been set by `setOption` before `bind` is called.

I think we should provide an overload to `bind` without requiring 'reuseAddress', so that we can choose to preserve the existing value of that option.

Contributor guide

Open the contributing guide

Research direction

Start at the ntsi::StreamSocket::bind entry point and inspect its existing overload and how setOption stores reuseAddress. Add an overload that does not require reuseAddress and verify that binding preserves the value previously configured through setOption.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
networking
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.