comparison src/core/ngx_inet.h @ 0:f0b350454894 NGINX_0_1_0

nginx 0.1.0 *) The first public version.
author Igor Sysoev <http://sysoev.ru>
date Mon, 04 Oct 2004 00:00:00 +0400
parents
children 7ca9bdc82b3f
comparison
equal deleted inserted replaced
-1:000000000000 0:f0b350454894
1
2 /*
3 * Copyright (C) Igor Sysoev
4 */
5
6
7 #ifndef _NGX_INET_H_INCLUDED_
8 #define _NGX_INET_H_INCLUDED_
9
10
11 typedef struct {
12 in_addr_t addr;
13 in_addr_t mask;
14 } ngx_inet_cidr_t;
15
16
17 size_t ngx_sock_ntop(int family, struct sockaddr *addr, u_char *text,
18 size_t len);
19 size_t ngx_inet_ntop(int family, void *addr, u_char *text, size_t len);
20
21 ngx_int_t ngx_ptocidr(ngx_str_t *text, void *cidr);
22
23
24 #endif /* _NGX_INET_H_INCLUDED_ */