gooderp18绿色标准版
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

38 líneas
1.0KB

  1. /*-------------------------------------------------------------------------
  2. *
  3. * ip.h
  4. * Definitions for IPv6-aware network access.
  5. *
  6. * These definitions are used by both frontend and backend code.
  7. *
  8. * Copyright (c) 2003-2019, PostgreSQL Global Development Group
  9. *
  10. * src/include/common/ip.h
  11. *
  12. *-------------------------------------------------------------------------
  13. */
  14. #ifndef IP_H
  15. #define IP_H
  16. #include "getaddrinfo.h" /* pgrminclude ignore */
  17. #include "libpq/pqcomm.h" /* pgrminclude ignore */
  18. #ifdef HAVE_UNIX_SOCKETS
  19. #define IS_AF_UNIX(fam) ((fam) == AF_UNIX)
  20. #else
  21. #define IS_AF_UNIX(fam) (0)
  22. #endif
  23. extern int pg_getaddrinfo_all(const char *hostname, const char *servname,
  24. const struct addrinfo *hintp,
  25. struct addrinfo **result);
  26. extern void pg_freeaddrinfo_all(int hint_ai_family, struct addrinfo *ai);
  27. extern int pg_getnameinfo_all(const struct sockaddr_storage *addr, int salen,
  28. char *node, int nodelen,
  29. char *service, int servicelen,
  30. int flags);
  31. #endif /* IP_H */
上海开阖软件有限公司 沪ICP备12045867号-1