You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@geode.apache.org by "mivanac (GitHub)" <gi...@apache.org> on 2019/09/17 08:08:22 UTC
[GitHub] [geode-native] mivanac commented on pull request #521:
GEODE-7209: Modify check if hostname is resolved
According to ACE_INET_Addr implementation we can not get reply if hostname is not resolved (just error printout):
```
// Creates a ACE_INET_Addr from a PORT_NUMBER and the remote
// HOST_NAME.
ACE_INET_Addr::ACE_INET_Addr (u_short port_number,
const char host_name[],
int address_family)
: ACE_Addr (determine_type (), sizeof (inet_addr_))
{
ACE_TRACE ("ACE_INET_Addr::ACE_INET_Addr");
ACE_OS::memset (&this->inet_addr_, 0, sizeof (this->inet_addr_));
if (this->set (port_number,
host_name,
1,
address_family) == -1)
ACELIB_ERROR ((LM_ERROR,
ACE_TEXT ("ACE_INET_Addr::ACE_INET_Addr: %p\n"),
ACE_TEXT_CHAR_TO_TCHAR ((host_name == 0) ?
"<unknown>" : host_name)));
}
```
[ 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