PostgreSQL Source Code
git master
ip.h
Go to the documentation of this file.
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-2022, PostgreSQL Global Development Group
9
*
10
* src/include/common/ip.h
11
*
12
*-------------------------------------------------------------------------
13
*/
14
#ifndef IP_H
15
#define IP_H
16
17
#include "
getaddrinfo.h
"
/* pgrminclude ignore */
18
#include "
libpq/pqcomm.h
"
/* pgrminclude ignore */
19
20
21
extern
int
pg_getaddrinfo_all
(
const
char
*
hostname
,
const
char
*servname,
22
const
struct
addrinfo
*hintp,
23
struct
addrinfo
**result);
24
extern
void
pg_freeaddrinfo_all
(
int
hint_ai_family,
struct
addrinfo
*ai);
25
26
extern
int
pg_getnameinfo_all
(
const
struct
sockaddr_storage
*addr,
int
salen,
27
char
*node,
int
nodelen,
28
char
*service,
int
servicelen,
29
int
flags);
30
31
#endif
/* IP_H */
getaddrinfo.h
pg_freeaddrinfo_all
void pg_freeaddrinfo_all(int hint_ai_family, struct addrinfo *ai)
Definition:
ip.c:88
pg_getnameinfo_all
int pg_getnameinfo_all(const struct sockaddr_storage *addr, int salen, char *node, int nodelen, char *service, int servicelen, int flags)
Definition:
ip.c:122
pg_getaddrinfo_all
int pg_getaddrinfo_all(const char *hostname, const char *servname, const struct addrinfo *hintp, struct addrinfo **result)
Definition:
ip.c:57
hostname
static char * hostname
Definition:
pg_regress.c:91
pqcomm.h
addrinfo
Definition:
getaddrinfo.h:99
sockaddr_storage
Definition:
pqcomm.h:45
src
include
common
ip.h
Generated on Thu Jun 30 2022 00:13:23 for PostgreSQL Source Code by
1.9.1