Diff

Not logged in

Differences From Artifact [8a3ffcdad49f7276]:

To Artifact [cfbc35c30c15b219]:


219 219 size_t ai_addrlen; 220 220 char* ai_canonname; 221 221 SOCKADDR* ai_addr; 222 222 addrinfo* ai_next; 223 223 } 224 224 225 225 extern(Windows) { 226 - static if (_WIN32_WINNT >= 0x0501) { 226 + static if (_WIN32_WINNT >= 0x501) { 227 227 void freeaddrinfo(addrinfo*); 228 - int getaddrinfo (CPtr!(char), CPtr!(char), CPtr!(addrinfo), addrinfo**); 229 - int getnameinfo(CPtr!(SOCKADDR), socklen_t, char*, DWORD, char*, DWORD, int); 228 + int getaddrinfo (const(char)*, const(char)*, const(addrinfo)*, addrinfo**); 229 + int getnameinfo(const(SOCKADDR)*, socklen_t, char*, DWORD, char*, DWORD, int); 230 230 } 231 231 } 232 232 233 233 /+ TODO 234 234 static __inline char* 235 235 gai_strerrorA(int ecode) 236 236 { 237 - static char message[1024+1]; 237 + static char[1024+1] message; 238 238 DWORD dwFlags = FORMAT_MESSAGE_FROM_SYSTEM 239 239 | FORMAT_MESSAGE_IGNORE_INSERTS 240 240 | FORMAT_MESSAGE_MAX_WIDTH_MASK; 241 241 DWORD dwLanguageId = MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT); 242 242 FormatMessageA(dwFlags, NULL, ecode, dwLanguageId, (LPSTR)message, 1024, NULL); 243 243 return message; 244 244 } 245 245 static __inline WCHAR* 246 246 gai_strerrorW(int ecode) 247 247 { 248 - static WCHAR message[1024+1]; 248 + static WCHAR[1024+1] message; 249 249 DWORD dwFlags = FORMAT_MESSAGE_FROM_SYSTEM 250 250 | FORMAT_MESSAGE_IGNORE_INSERTS 251 251 | FORMAT_MESSAGE_MAX_WIDTH_MASK; 252 252 DWORD dwLanguageId = MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT); 253 253 FormatMessageW(dwFlags, NULL, ecode, dwLanguageId, (LPWSTR)message, 1024, NULL); 254 254 return message; 255 255 } ................................................................................ 261 261 +/ 262 262 263 263 extern(Windows) { 264 264 INT getnameinfo(SOCKADDR* pSockaddr, socklen_t SockaddrLength, 265 265 PCHAR pNodeBuffer, DWORD NodeBufferSize, PCHAR pServiceBuffer, 266 266 DWORD ServiceBufferSize, INT Flags); 267 267 268 - static if (_WIN32_WINNT >= 0x0502) { 268 + static if (_WIN32_WINNT >= 0x502) { 269 269 INT GetNameInfoW(SOCKADDR* pSockaddr, socklen_t SockaddrLength, 270 270 PWCHAR pNodeBuffer, DWORD NodeBufferSize, PWCHAR pServiceBuffer, 271 271 DWORD ServiceBufferSize, INT Flags); 272 272 273 273 alias getnameinfo GetNameInfoA; 274 274 275 275 version(Unicode) { 276 276 alias GetNameInfoW GetNameInfo; 277 277 } else { 278 278 alias GetNameInfoA GetNameInfo; 279 279 } 280 280 } 281 281 }