Lines Matching refs:hptr
90 struct hostent *hptr; in getHost() local
92 hptr = gethostbyname( "localhost" ); in getHost()
93 OSL_ENSURE( hptr != NULL, "#In getHostname function, error on gethostbyname()" ); in getHost()
94 ::rtl::OUString aUString = ::rtl::OUString::createFromAscii( (const sal_Char *) hptr->h_name ); in getHost()
105 struct hostent *hptr; in getThisHostname() local
106 hptr = gethostbyname( "localhost" ); in getThisHostname()
107 OSL_ENSURE( hptr != NULL, "#In getHostname function, error on gethostbyname()" ); in getThisHostname()
108 rtl::OString sHostname(hptr->h_name); in getThisHostname()
116 struct hostent *hptr; in getThisHostname() local
118 hptr = gethostbyname( hostname); in getThisHostname()
119 if ( hptr != NULL ) in getThisHostname()
121 strcpy( hostname, hptr->h_name ); in getThisHostname()
137 struct hostent *hptr; in getIPbyName() local
139 hptr = gethostbyname( str_name.getStr()); in getIPbyName()
140 if ( hptr != NULL ) in getIPbyName()
143 addrptr = (struct in_addr **) hptr->h_addr_list ; in getIPbyName()