Lines Matching refs:hptr
119 struct hostent *hptr; in getHost() local
121 hptr = gethostbyname( "localhost" ); in getHost()
122 EXPECT_TRUE(hptr != NULL) << "#In getHostname function, error on gethostbyname()"; in getHost()
123 ::rtl::OUString aUString = ::rtl::OUString::createFromAscii( (const sal_Char *) hptr->h_name ); in getHost()
134 struct hostent *hptr; in getThisHostname() local
135 hptr = gethostbyname( "localhost" ); in getThisHostname()
136 EXPECT_TRUE(hptr != NULL) << "#In getHostname function, error on gethostbyname()"; in getThisHostname()
137 aUString = ::rtl::OUString::createFromAscii( (const sal_Char *) hptr->h_name ); in getThisHostname()
142 struct hostent *hptr; in getThisHostname() local
144 hptr = gethostbyname( hostname); in getThisHostname()
145 if ( hptr != NULL ) in getThisHostname()
147 strcpy( hostname, hptr->h_name ); in getThisHostname()
161 struct hostent *hptr; in getIPbyName() local
163 hptr = gethostbyname( str_name.getStr()); in getIPbyName()
164 if ( hptr != NULL ) in getIPbyName()
167 addrptr = (struct in_addr **) hptr->h_addr_list ; in getIPbyName()