socket.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * Copyright (C) 2016 Free Software Foundation, Inc.
  3. *
  4. * Author: Tim Ruehsen
  5. *
  6. * This file is part of GnuTLS.
  7. *
  8. * The GnuTLS is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU Lesser General Public License
  10. * as published by the Free Software Foundation; either version 2.1 of
  11. * the License, or (at your option) any later version.
  12. *
  13. * This library is distributed in the hope that it will be useful, but
  14. * WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * Lesser General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public License
  19. * along with this program. If not, see <http://www.gnu.org/licenses/>
  20. *
  21. */
  22. /* This file contains socket related types, prototypes and includes.
  23. */
  24. #ifndef GNUTLS_SOCKET_H
  25. #define GNUTLS_SOCKET_H
  26. #include <gnutls/gnutls.h>
  27. /* Get socklen_t */
  28. #include <sys/socket.h>
  29. /* *INDENT-OFF* */
  30. #ifdef __cplusplus
  31. extern "C" {
  32. #endif
  33. /* *INDENT-ON* */
  34. void gnutls_transport_set_fastopen(gnutls_session_t session,
  35. int fd,
  36. struct sockaddr *connect_addr,
  37. socklen_t connect_addrlen,
  38. unsigned int flags);
  39. /* *INDENT-OFF* */
  40. #ifdef __cplusplus
  41. }
  42. #endif
  43. /* *INDENT-ON* */
  44. #endif /* GNUTLS_SOCKET_H */