connection_finish_forward.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. This file is part of libmicrohttpd
  3. Copyright (C) 2007-2018 Daniel Pittman and Christian Grothoff
  4. This library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Lesser General Public
  6. License as published by the Free Software Foundation; either
  7. version 2.1 of the License, or (at your option) any later version.
  8. This library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Lesser General Public License for more details.
  12. You should have received a copy of the GNU Lesser General Public
  13. License along with this library; if not, write to the Free Software
  14. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  15. */
  16. /**
  17. * @file lib/connection_finish_forward.h
  18. * @brief complete upgrade socket forwarding operation in TLS mode
  19. * @author Christian Grothoff
  20. */
  21. #ifndef CONNECTION_FINISH_FORWARD_H
  22. #define CONNECTION_FINISH_FORWARD_H
  23. /**
  24. * Stop TLS forwarding on upgraded connection and
  25. * reflect remote disconnect state to socketpair.
  26. *
  27. * @remark In thread-per-connection mode this function
  28. * can be called from any thread, in other modes this
  29. * function must be called only from thread that process
  30. * daemon's select()/poll()/etc.
  31. *
  32. * @param connection the upgraded connection
  33. */
  34. void
  35. MHD_connection_finish_forward_ (struct MHD_Connection *connection)
  36. MHD_NONNULL (1);
  37. #endif