You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 8, 2024. It is now read-only.
int ai_socktype = SOCK_STREAM; /* socktype default value required to be able to perform getAddrInfo on DragonFlyBSD
434
+
* without socktype set, you get 'servname not supported for ai_socktype'
435
+
*/
436
+
int ai_protocol;
437
+
socklen_t ai_addrlen;
438
+
char* ai_canonname;
439
+
sockaddr* ai_addr;
440
+
addrinfo* ai_next;
441
+
}
442
+
443
+
enumIPPORT_RESERVED = 1024;
444
+
445
+
enumNETDB_INTERNAL = -1;
446
+
enumNETDB_SUCCESS = 0;
447
+
enumHOST_NOT_FOUND = 1;
448
+
enumTRY_AGAIN = 2;
449
+
enumNO_RECOVERY = 3;
450
+
enumNO_DATA = 4;
451
+
enumNO_ADDRESS = NO_DATA;
452
+
453
+
//enum EAI_ADDRFAMILY = 1; // deprecated
454
+
enumEAI_AGAIN = 2;
455
+
enumEAI_BADFLAGS = 3;
456
+
enumEAI_FAIL = 4;
457
+
enumEAI_FAMILY = 5;
458
+
enumEAI_MEMORY = 6;
459
+
//enum EAI_NODATA = 7; // deprecated
460
+
enumEAI_NONAME = 8;
461
+
enumEAI_SERVICE = 9;
462
+
enumEAI_SOCKTYPE = 10;
463
+
enumEAI_SYSTEM = 11;
464
+
enumEAI_BADHINTS = 12;
465
+
enumEAI_PROTOCOL = 13;
466
+
enumEAI_OVERFLOW = 14;
467
+
468
+
enumAI_PASSIVE = 0x001;
469
+
enumAI_CANONNAME = 0x002;
470
+
enumAI_NUMERICHOST = 0x004;
471
+
enumAI_NUMERICSERV = 0x008;
472
+
enumAI_MASK = (AI_PASSIVE | AI_CANONNAME | AI_NUMERICHOST | AI_NUMERICSERV | AI_ADDRCONFIG); // valid flags for addrinfo (not a standard def, apps should not use it)
0 commit comments