xref: /netbsd-src/external/ibm-public/postfix/dist/src/global/haproxy_srvr.h (revision 33881f779a77dce6440bdc44610d94de75bebefe)
1 /*	$NetBSD: haproxy_srvr.h,v 1.2 2020/03/18 19:05:16 christos Exp $	*/
2 
3 #ifndef _HAPROXY_SRVR_H_INCLUDED_
4 #define _HAPROXY_SRVR_H_INCLUDED_
5 
6 /*++
7 /* NAME
8 /*	haproxy_srvr 3h
9 /* SUMMARY
10 /*	server-side haproxy protocol support
11 /* SYNOPSIS
12 /*	#include <haproxy_srvr.h>
13 /* DESCRIPTION
14 /* .nf
15 
16  /*
17   * Utility library.
18   */
19 #include <myaddrinfo.h>
20 
21  /*
22   * External interface.
23   */
24 extern const char *haproxy_srvr_parse(const char *, ssize_t *, int *,
25 			             MAI_HOSTADDR_STR *, MAI_SERVPORT_STR *,
26 			            MAI_HOSTADDR_STR *, MAI_SERVPORT_STR *);
27 extern int haproxy_srvr_receive(int, int *,
28 			             MAI_HOSTADDR_STR *, MAI_SERVPORT_STR *,
29 			            MAI_HOSTADDR_STR *, MAI_SERVPORT_STR *);
30 
31 #define HAPROXY_PROTO_NAME	"haproxy"
32 
33 #ifndef DO_GRIPE
34 #define DO_GRIPE 	1
35 #define DONT_GRIPE	0
36 #endif
37 
38 /* LICENSE
39 /* .ad
40 /* .fi
41 /*	The Secure Mailer license must be distributed with this software.
42 /* AUTHOR(S)
43 /*	Wietse Venema
44 /*	IBM T.J. Watson Research
45 /*	P.O. Box 704
46 /*	Yorktown Heights, NY 10598, USA
47 /*
48 /*	Wietse Venema
49 /*	Google, Inc.
50 /*	111 8th Avenue
51 /*	New York, NY 10011, USA
52 /*--*/
53 
54 #endif
55