Skip to content

Conversation

@PDXKimani
Copy link
Contributor

@PDXKimani PDXKimani commented Nov 3, 2025

It'd be useful to be able to configure the socket with these when writing a server. I also included the three existing configurable fields, since I was adding a config parameter anyway.

Comment on lines 63 to 141
pub async fn new(
address: std::net::SocketAddr,
address: SocketAddr,
runtime: tokio::runtime::Handle,
connector: Connector,
config: ProtosocketServerConfig,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're going to break source-compatibility, let's make this api private. Add an async fn bind_tcp on ProtosocketServerConfig that delegates to it. This way avoids increasing server initialization complexity.

While we're adding things, let's drop in some documentation on the new structs & functions too!

Copy link
Owner

@kvc0 kvc0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@kvc0 kvc0 merged commit 25e66d2 into kvc0:main Nov 3, 2025
1 check passed
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