Acceptor host and port#42
Open
iconara wants to merge 3 commits into
Open
Conversation
This is useful when you want to bind to any available port. Also make IoReactor#bind default to 0.0.0.0 and 0 so that binding without parameters binds to any available port on any interface. Since you now can easily determine which this is there's no reason to require the parameters.
So that you can figure out which interface and port the connection is using.
395d54e to
f63e459
Compare
Owner
Author
|
The SSL part doesn't work. Also there's a bug in JRuby 1.7.x where |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
#hostand#porttoIone::Io::Acceptorso that you can find out the host and port that the server runs on when you specify'0.0.0.0'and/or0as host and port.These values are now also the default values so that you can do
reactor.bindto start a server that listens to any interface and an available port.