Blame src/udp-serv.h

Packit aea12f
/*
Packit aea12f
 * Copyright (C) 2011-2012 Free Software Foundation, Inc.
Packit aea12f
 *
Packit aea12f
 * This file is part of GnuTLS.
Packit aea12f
 *
Packit aea12f
 * GnuTLS is free software: you can redistribute it and/or modify
Packit aea12f
 * it under the terms of the GNU General Public License as published by
Packit aea12f
 * the Free Software Foundation, either version 3 of the License, or
Packit aea12f
 * (at your option) any later version.
Packit aea12f
 *
Packit aea12f
 * GnuTLS is distributed in the hope that it will be useful,
Packit aea12f
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit aea12f
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit aea12f
 * GNU General Public License for more details.
Packit aea12f
 *
Packit aea12f
 * You should have received a copy of the GNU General Public License
Packit aea12f
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
Packit aea12f
 */
Packit aea12f
Packit aea12f
#ifndef GNUTLS_SRC_UDP_SERV_H
Packit aea12f
#define GNUTLS_SRC_UDP_SERV_H
Packit aea12f
Packit aea12f
#include <gnutls/dtls.h>
Packit aea12f
Packit aea12f
void udp_server(const char *name, int port, int mtu);
Packit aea12f
gnutls_session_t initialize_session(int dtls);
Packit aea12f
const char *human_addr(const struct sockaddr *sa, socklen_t salen,
Packit aea12f
		       char *buf, size_t buflen);
Packit aea12f
int wait_for_connection(void);
Packit aea12f
int listen_socket(const char *name, int listen_port, int socktype);
Packit aea12f
Packit aea12f
#endif /* GNUTLS_SRC_UDP_SERV_H */