aboutsummaryrefslogtreecommitdiff
path: root/src/include/microhttpd2.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/microhttpd2.h')
-rw-r--r--src/include/microhttpd2.h46
1 files changed, 27 insertions, 19 deletions
diff --git a/src/include/microhttpd2.h b/src/include/microhttpd2.h
index aa0fa0ae..f4b39fbe 100644
--- a/src/include/microhttpd2.h
+++ b/src/include/microhttpd2.h
@@ -2608,7 +2608,14 @@ enum MHD_ConnectionInformationType
2608 * Get connection timeout 2608 * Get connection timeout
2609 * @ingroup request 2609 * @ingroup request
2610 */ 2610 */
2611 MHD_CONNECTION_INFORMATION_CONNECTION_TIMEOUT 2611 MHD_CONNECTION_INFORMATION_CONNECTION_TIMEOUT,
2612
2613 /**
2614 * Check whether the connection is suspended.
2615 * @ingroup request
2616 */
2617 MHD_CONNECTION_INFORMATION_CONNECTION_SUSPENDED
2618
2612 2619
2613}; 2620};
2614 2621
@@ -2654,7 +2661,7 @@ union MHD_ConnectionInformation
2654 /** 2661 /**
2655 * Address information for the client. 2662 * Address information for the client.
2656 */ 2663 */
2657 struct sockaddr *client_addr; 2664 const struct sockaddr *client_addr;
2658 2665
2659 /** 2666 /**
2660 * Which daemon manages this connection (useful in case there are many 2667 * Which daemon manages this connection (useful in case there are many
@@ -2663,10 +2670,16 @@ union MHD_ConnectionInformation
2663 struct MHD_Daemon *daemon; 2670 struct MHD_Daemon *daemon;
2664 2671
2665 /** 2672 /**
2666 * Socket-specific client context. Points to the same address as 2673 * Pointer to connection-specific client context. Points to the
2667 * the "socket_context" of the #MHD_NotifyConnectionCallback. 2674 * same address as the "socket_context" of the
2675 * #MHD_NotifyConnectionCallback.
2676 */
2677 void **socket_context;
2678
2679 /**
2680 * Is this connection right now suspended?
2668 */ 2681 */
2669 void *socket_context; 2682 enum MHD_Bool suspended;
2670}; 2683};
2671 2684
2672 2685
@@ -2721,15 +2734,10 @@ union MHD_RequestInformation
2721 struct MHD_Connection *connection; 2734 struct MHD_Connection *connection;
2722 2735
2723 /** 2736 /**
2724 * Socket-specific client context. Will also be given to 2737 * Pointer to client context. Will also be given to
2725 * the application in a #MHD_RequestTerminationCallback. 2738 * the application in a #MHD_RequestTerminationCallback.
2726 */ 2739 */
2727 void *request_context; 2740 void **request_context;
2728
2729 /**
2730 * The suspended status of a request.
2731 */
2732 enum MHD_Bool suspended;
2733 2741
2734 /** 2742 /**
2735 * HTTP version requested by the client. 2743 * HTTP version requested by the client.
@@ -2762,11 +2770,11 @@ enum MHD_RequestInformationType
2762 MHD_REQUEST_INFORMATION_CONNECTION, 2770 MHD_REQUEST_INFORMATION_CONNECTION,
2763 2771
2764 /** 2772 /**
2765 * Check whether the connection is suspended. 2773 * Returns the client-specific pointer to a `void *` that
2766 * @ingroup request 2774 * is specific to this request.
2767 */ 2775 */
2768 MHD_REQUEST_INFORMATION_SUSPENDED, 2776 MHD_REQUEST_INFORMATION_CLIENT_CONTEXT,
2769 2777
2770 /** 2778 /**
2771 * Return the HTTP version string given by the client. 2779 * Return the HTTP version string given by the client.
2772 * @ingroup request 2780 * @ingroup request
@@ -2837,7 +2845,7 @@ enum MHD_DaemonInformationType
2837 * Request the file descriptor for the listening socket. 2845 * Request the file descriptor for the listening socket.
2838 * No extra arguments should be passed. 2846 * No extra arguments should be passed.
2839 */ 2847 */
2840 MHD_DAEMON_INFORMATION_LISTEN_FD, 2848 MHD_DAEMON_INFORMATION_LISTEN_SOCKET,
2841 2849
2842 /** 2850 /**
2843 * Request the file descriptor for the external epoll. 2851 * Request the file descriptor for the external epoll.
@@ -2871,9 +2879,9 @@ union MHD_DaemonInformation
2871{ 2879{
2872 2880
2873 /** 2881 /**
2874 * Socket, returned for #MHD_DAEMON_INFORMATION_LISTEN_FD. 2882 * Socket, returned for #MHD_DAEMON_INFORMATION_LISTEN_SOCKET.
2875 */ 2883 */
2876 MHD_socket listen_fd; 2884 MHD_socket listen_socket;
2877 2885
2878 /** 2886 /**
2879 * Bind port number, returned for #MHD_DAEMON_INFORMATION_BIND_PORT. 2887 * Bind port number, returned for #MHD_DAEMON_INFORMATION_BIND_PORT.