So with deeper investigation I learned, that in  function
```
// Initializes a ACE_INET_Addr from a PORT_NUMBER and the remote
// HOST_NAME.

int
ACE_INET_Addr::set (u_short port_number,
                    const char host_name[],
                    int encode,
                    int address_family)
```
port will be set only in case hostname is resolved (there is no error).
So this is the reason why port is checked.

[ Full content available at: https://github.com/apache/geode-native/pull/521 ]
This message was relayed via gitbox.apache.org for 
notifications@geode.apache.org

Reply via email to