Home
last modified time | relevance | path

Searched refs:Hostent (Results 1 – 13 of 13) sorted by relevance

/reactos/sdk/lib/dnslib/
H A Dhostent.c23 PHOSTENT Hostent; in Hostent_Init() local
35 Hostent->h_aliases = (PCHAR*)((ULONG_PTR)(Hostent + 1) & ~3); in Hostent_Init()
41 Hostent->h_addr_list = (PCHAR*) in Hostent_Init()
53 return Hostent; in Hostent_Init()
74 if (Hostent->h_name) in Hostent_ConvertToOffsets()
77 Hostent->h_name -= (ULONG_PTR)Hostent; in Hostent_ConvertToOffsets()
81 if (Hostent->h_aliases) in Hostent_ConvertToOffsets()
84 Hostent->h_aliases -= (ULONG_PTR)Hostent; in Hostent_ConvertToOffsets()
87 Dns_PtrArrayToOffsetArray(Hostent->h_aliases, (ULONG_PTR)Hostent); in Hostent_ConvertToOffsets()
91 if (Hostent->h_addr_list) in Hostent_ConvertToOffsets()
[all …]
H A Dsablob.c148 PHOSTENT Hostent = NULL; in SaBlob_CreateHostent() local
218 Hostent = Hostent_Init((PVOID)&HostentPtr, in SaBlob_CreateHostent()
233 Hostent->h_addr_list[i] = (PCHAR)HostentPtr; in SaBlob_CreateHostent()
249 Hostent->h_name = (LPSTR)HostentPtr; in SaBlob_CreateHostent()
267 Hostent->h_aliases[i] = (LPSTR)HostentPtr; in SaBlob_CreateHostent()
286 if(Relative) Hostent_ConvertToOffsets(Hostent); in SaBlob_CreateHostent()
289 return Hostent; in SaBlob_CreateHostent()
/reactos/dll/win32/ws2_32/src/
H A Dasync.c48 BytesInHostent(PHOSTENT Hostent) in BytesInHostent() argument
60 for (i = 0; Hostent->h_aliases[i]; i++) in BytesInHostent()
131 IN PHOSTENT Hostent) in CopyHostentToBuffer() argument
140 BufferSize = BytesInHostent(Hostent); in CopyHostentToBuffer()
168 while (Hostent->h_aliases[Aliases]) in CopyHostentToBuffer()
179 Hostent->h_aliases = NULL; in CopyHostentToBuffer()
188 while (Hostent->h_addr_list[Names]) in CopyHostentToBuffer()
199 Hostent->h_addr_list = NULL; in CopyHostentToBuffer()
216 CopyMemory(p, Hostent->h_addr_list[i], Hostent->h_length); in CopyHostentToBuffer()
638 PHOSTENT Hostent; in WsAsyncGetHost() local
[all …]
H A Dgetxbyxx.c61 UnpackHostEnt(PHOSTENT Hostent) in UnpackHostEnt() argument
66 if (Hostent->h_name) Hostent->h_name = (PCHAR)(Hostent->h_name + HostentPtr); in UnpackHostEnt()
223 PHOSTENT Hostent; in gethostbyname() local
280 if (Hostent) UnpackHostEnt(Hostent); in gethostbyname()
285 Hostent = NULL; in gethostbyname()
298 if (Hostent) WSNoteSuccessfulHostentLookup(name, *Hostent->h_addr); in gethostbyname()
301 return Hostent; in gethostbyname()
314 PHOSTENT Hostent; in gethostbyaddr() local
371 if (Hostent) UnpackHostEnt(Hostent); in gethostbyaddr()
376 Hostent = NULL; in gethostbyaddr()
[all …]
H A Ddthread.c208 if (Thread->Hostent) HeapFree(WsSockHeap, 0, Thread->Hostent); in WsThreadDelete()
323 HeapFree(WsSockHeap, 0, Thread->Hostent); in WsThreadBlobToHostent()
324 Thread->Hostent = HeapAlloc(WsSockHeap, 0, Blob->cbSize); in WsThreadBlobToHostent()
331 if (Thread->Hostent) in WsThreadBlobToHostent()
334 RtlMoveMemory(Thread->Hostent, Blob->pBlobData, Blob->cbSize); in WsThreadBlobToHostent()
344 return (PHOSTENT)Thread->Hostent; in WsThreadBlobToHostent()
H A Daddrinfo.c254 PHOSTENT Hostent = NULL; in QueryDNS() local
262 Hostent = gethostbyname(NodeName); in QueryDNS()
263 if (Hostent) in QueryDNS()
266 if ((Hostent->h_addrtype == AF_INET) && in QueryDNS()
267 (Hostent->h_length == sizeof(IN_ADDR))) in QueryDNS()
270 for (Addresses = Hostent->h_addr_list; *Addresses; Addresses++) in QueryDNS()
285 strcpy(Alias, Hostent->h_name); in QueryDNS()
/reactos/modules/rostests/apitests/wininet/
H A DInternetOpen.c50 struct hostent *Hostent; in IsWinsockInitialized() local
55 Hostent = pgethostbyname("localhost"); in IsWinsockInitialized()
56 if (!Hostent) in IsWinsockInitialized()
58 return Hostent != NULL; in IsWinsockInitialized()
/reactos/modules/rostests/apitests/ws2_32/
H A Dgetaddrinfo.c206 struct hostent *Hostent; in START_TEST() local
234 Hostent = gethostbyname(LocalHostName); in START_TEST()
235 ok(Hostent != NULL, "gethostbyname failed with %d\n", WSAGetLastError()); in START_TEST()
236 if (Hostent && Hostent->h_addr_list[0] && Hostent->h_length == sizeof(IN_ADDR)) in START_TEST()
239 memcpy(&Address, Hostent->h_addr_list[0], sizeof(Address)); in START_TEST()
H A Dbind.c135 struct hostent *Hostent; in START_TEST() local
158 Hostent = gethostbyname(LocalHostName); in START_TEST()
159 ok(Hostent != NULL, "gethostbyname failed with %d\n", WSAGetLastError()); in START_TEST()
160 if (Hostent && Hostent->h_addr_list[0] && Hostent->h_length == sizeof(IN_ADDR)) in START_TEST()
162 memcpy(&Address, Hostent->h_addr_list[0], sizeof(Address)); in START_TEST()
H A DWSAStartup.c58 struct hostent *Hostent; in IsWinsockInitialized() local
60 Hostent = gethostbyname("localhost"); in IsWinsockInitialized()
61 if (!Hostent) in IsWinsockInitialized()
63 return Hostent != NULL; in IsWinsockInitialized()
/reactos/modules/rostests/apitests/winhttp/
H A DWinHttpOpen.c57 struct hostent *Hostent; in IsWinsockInitialized() local
62 Hostent = pgethostbyname("localhost"); in IsWinsockInitialized()
63 if (!Hostent) in IsWinsockInitialized()
65 return Hostent != NULL; in IsWinsockInitialized()
/reactos/sdk/lib/dnslib/inc/
H A Ddnslib.h67 PHOSTENT Hostent; member
184 Hostent_ConvertToOffsets(IN PHOSTENT Hostent);
/reactos/dll/win32/ws2_32/inc/
H A Dws2_32p.h186 PCHAR Hostent; member