Skip to content

Conversation

@clue
Copy link
Member

@clueclue 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
MemberAuthor

clue commented Feb 5, 2017

Rebased now that #67 is in :shipit:

jsor
jsor approved these changes Feb 5, 2017
@clueclue merged commit 535f323 into reactphp:masterFeb 5, 2017
@clueclue deleted the getlocaladdress branch February 5, 2017 17:11
Sign up for freeto 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

@clue@jsor@WyriHaximus