Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Macros | Functions
ngx_inet.h File Reference
#include <ngx_config.h>
#include <ngx_core.h>
Include dependency graph for ngx_inet.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ngx_in_cidr_t
struct  ngx_cidr_t
struct  ngx_addr_t
struct  ngx_url_t

Macros

#define NGX_INET_ADDRSTRLEN   (sizeof("255.255.255.255") - 1)
#define NGX_INET6_ADDRSTRLEN   (sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255") - 1)
#define NGX_UNIX_ADDRSTRLEN   (sizeof(struct sockaddr_un) - offsetof(struct sockaddr_un, sun_path))
#define NGX_SOCKADDR_STRLEN   (NGX_INET6_ADDRSTRLEN + sizeof("[]:65535") - 1)
#define NGX_SOCKADDRLEN   512

Functions

in_addr_t ngx_inet_addr (u_char *text, size_t len)
size_t ngx_sock_ntop (struct sockaddr *sa, u_char *text, size_t len, ngx_uint_t port)
size_t ngx_inet_ntop (int family, void *addr, u_char *text, size_t len)
ngx_int_t ngx_ptocidr (ngx_str_t *text, ngx_cidr_t *cidr)
ngx_int_t ngx_parse_addr (ngx_pool_t *pool, ngx_addr_t *addr, u_char *text, size_t len)
ngx_int_t ngx_parse_url (ngx_pool_t *pool, ngx_url_t *u)
ngx_int_t ngx_inet_resolve_host (ngx_pool_t *pool, ngx_url_t *u)

Macro Definition Documentation

#define NGX_INET6_ADDRSTRLEN   (sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255") - 1)

Definition at line 25 of file ngx_inet.h.

#define NGX_INET_ADDRSTRLEN   (sizeof("255.255.255.255") - 1)

Definition at line 24 of file ngx_inet.h.

#define NGX_SOCKADDR_STRLEN   (NGX_INET6_ADDRSTRLEN + sizeof("[]:65535") - 1)

Definition at line 33 of file ngx_inet.h.

#define NGX_SOCKADDRLEN   512

Definition at line 39 of file ngx_inet.h.

#define NGX_UNIX_ADDRSTRLEN   (sizeof(struct sockaddr_un) - offsetof(struct sockaddr_un, sun_path))

Definition at line 27 of file ngx_inet.h.

Function Documentation

in_addr_t ngx_inet_addr ( u_char *  text,
size_t  len 
)

Definition at line 18 of file ngx_inet.c.

Here is the caller graph for this function:

size_t ngx_inet_ntop ( int  family,
void *  addr,
u_char *  text,
size_t  len 
)

Definition at line 246 of file ngx_inet.c.

Here is the call graph for this function:

Here is the caller graph for this function:

ngx_int_t ngx_inet_resolve_host ( ngx_pool_t pool,
ngx_url_t u 
)

Definition at line 1076 of file ngx_inet.c.

Here is the call graph for this function:

Here is the caller graph for this function:

ngx_int_t ngx_parse_addr ( ngx_pool_t pool,
ngx_addr_t addr,
u_char *  text,
size_t  len 
)

Definition at line 455 of file ngx_inet.c.

Here is the call graph for this function:

Here is the caller graph for this function:

ngx_int_t ngx_parse_url ( ngx_pool_t pool,
ngx_url_t u 
)

Definition at line 515 of file ngx_inet.c.

Here is the call graph for this function:

Here is the caller graph for this function:

ngx_int_t ngx_ptocidr ( ngx_str_t text,
ngx_cidr_t cidr 
)

Definition at line 355 of file ngx_inet.c.

Here is the call graph for this function:

size_t ngx_sock_ntop ( struct sockaddr *  sa,
u_char *  text,
size_t  len,
ngx_uint_t  port 
)

Definition at line 177 of file ngx_inet.c.

Here is the call graph for this function:

Here is the caller graph for this function: