ngx_proxy_protocol.h revision e18a033b
1
2/*
3 * Copyright (C) Roman Arutyunyan
4 * Copyright (C) Nginx, Inc.
5 */
6
7
8#ifndef _NGX_PROXY_PROTOCOL_H_INCLUDED_
9#define _NGX_PROXY_PROTOCOL_H_INCLUDED_
10
11
12#include <ngx_config.h>
13#include <ngx_core.h>
14
15
16#define NGX_PROXY_PROTOCOL_MAX_HEADER  107
17
18
19u_char *ngx_proxy_protocol_read(ngx_connection_t *c, u_char *buf,
20    u_char *last);
21u_char *ngx_proxy_protocol_write(ngx_connection_t *c, u_char *buf,
22    u_char *last);
23
24
25#endif /* _NGX_PROXY_PROTOCOL_H_INCLUDED_ */
26