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