blob: 99343417e9d46585914ade79cf044da00b52eaba [file] [log] [blame]
Willy Tarreau0d06df62020-08-28 15:10:11 +02001/*
2 * include/haproxy/sock_unix.h
3 * This file contains declarations for AF_UNIX sockets.
4 *
5 * Copyright (C) 2000-2020 Willy Tarreau - w@1wt.eu
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation, version 2.1
10 * exclusively.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21
22#ifndef _HAPROXY_SOCK_UNIX_H
23#define _HAPROXY_SOCK_UNIX_H
24
25#include <sys/socket.h>
26#include <sys/types.h>
27
28#include <haproxy/api.h>
Willy Tarreau1e0a8602020-09-02 17:14:29 +020029#include <haproxy/receiver-t.h>
Willy Tarreau0d06df62020-08-28 15:10:11 +020030
Willy Tarreaub0254cb2020-09-04 08:07:11 +020031extern struct proto_fam proto_fam_unix;
32
Willy Tarreau0d06df62020-08-28 15:10:11 +020033int sock_unix_addrcmp(const struct sockaddr_storage *a, const struct sockaddr_storage *b);
Willy Tarreau233ad282020-10-15 21:45:15 +020034int sock_unix_bind_receiver(struct receiver *rx, char **errmsg);
Willy Tarreau0d06df62020-08-28 15:10:11 +020035
36#endif /* _HAPROXY_SOCK_UNIX_H */