| /* |
| * include/haproxy/quic_sock.h |
| * This file contains declarations for QUIC sockets. |
| * |
| * Copyright 2020 Frédéric Lécaille <flecaille@haproxy.com> |
| * |
| * This library is free software; you can redistribute it and/or |
| * modify it under the terms of the GNU Lesser General Public |
| * License as published by the Free Software Foundation, version 2.1 |
| * exclusively. |
| * |
| * This library is distributed in the hope that it will be useful, |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| * Lesser General Public License for more details. |
| * |
| * You should have received a copy of the GNU Lesser General Public |
| * License along with this library; if not, write to the Free Software |
| * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| */ |
| |
| #ifndef _HAPROXY_QUIC_SOCK_H |
| #define _HAPROXY_QUIC_SOCK_H |
| #ifdef USE_QUIC |
| #ifndef USE_OPENSSL |
| #error "Must define USE_OPENSSL" |
| #endif |
| |
| #include <sys/socket.h> |
| #include <sys/types.h> |
| |
| #include <haproxy/api.h> |
| #include <haproxy/connection-t.h> |
| #include <haproxy/listener-t.h> |
| |
| int quic_sock_accepting_conn(const struct receiver *rx); |
| struct connection *quic_sock_accept_conn(struct listener *l, int *status); |
| void quic_sock_fd_iocb(int fd); |
| |
| #endif /* USE_QUIC */ |
| #endif /* _HAPROXY_QUIC_SOCK_H */ |
| |
| /* |
| * Local variables: |
| * c-indent-level: 8 |
| * c-basic-offset: 8 |
| * End: |
| */ |