Skip to content

Conversation

clue
Copy link
Member

@clue clue commented Feb 5, 2017

This PR implements a simple getLocalAddress() method which complements the existing getRemoteAddress() method already present on the ConnectionInterface.

This can be useful if your Server instance is listening on multiple interfaces (e.g. using the address 0.0.0.0). You can use this method to find out which interface actually accepted this connection (such as a public or local interface).

Adding this method is a new feature from a consumer perspective. Marking this as "BC break" in case any consumers of this package implement this interface (this should not affect most users, aka. normal usage).

Refs reactphp/reactphp#199 and #65

@clue
Copy link
Member Author

clue commented Feb 5, 2017

Rebased now that #67 is in :shipit:

@clue clue merged commit 535f323 into reactphp:master Feb 5, 2017
@clue clue deleted the getlocaladdress branch February 5, 2017 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants