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 socket-port and socket-host methods on the server tap object #48

Open
zostay opened this issue Jan 19, 2020 · 1 comment
Open

Comments

@zostay
Copy link

zostay commented Jan 19, 2020

The built in listen method of IO::Socket::Async is implemented such that a special Tappable is returned from the Supply returned by it when it is tapped. This is named IO::Socket::Async::ListenSocket and provides the usual close method as well as socket-host and socket-port methods. These additional methods are especially important if you allow the OS to select the host or port number.

IO::Socket::Async::SSL ought to provide these methods as well.

@jnthn
Copy link
Owner

jnthn commented Jan 19, 2020

Indeed; I should fine a way to expose this in Cro also.

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

No branches or pull requests

2 participants