aboutsummaryrefslogtreecommitdiff
path: root/src/lib/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/internal.h')
-rw-r--r--src/lib/internal.h54
1 files changed, 44 insertions, 10 deletions
diff --git a/src/lib/internal.h b/src/lib/internal.h
index e958d2a5..f03e101e 100644
--- a/src/lib/internal.h
+++ b/src/lib/internal.h
@@ -494,16 +494,6 @@ struct MHD_Request
494 */ 494 */
495 char *colon; 495 char *colon;
496 496
497 /**
498 * Function used for reading HTTP request stream.
499 */
500 ReceiveCallback recv_cls;
501
502 /**
503 * Function used for writing HTTP response stream.
504 */
505 TransmitCallback send_cls;
506
507#ifdef UPGRADE_SUPPORT 497#ifdef UPGRADE_SUPPORT
508 /** 498 /**
509 * If this connection was upgraded, this points to 499 * If this connection was upgraded, this points to
@@ -741,6 +731,16 @@ struct MHD_Connection
741#endif 731#endif
742 732
743 /** 733 /**
734 * Function used for reading HTTP request stream.
735 */
736 ReceiveCallback recv_cls;
737
738 /**
739 * Function used for writing HTTP response stream.
740 */
741 TransmitCallback send_cls;
742
743 /**
744 * Information about the current request we are processing 744 * Information about the current request we are processing
745 * on this connection. 745 * on this connection.
746 */ 746 */
@@ -1894,4 +1894,38 @@ MHD_parse_arguments_ (struct MHD_Request *request,
1894 1894
1895 1895
1896 1896
1897/**
1898 * Error code similar to EGAIN or EINTR
1899 */
1900#define MHD_ERR_AGAIN_ (-3073)
1901
1902/**
1903 * Connection was hard-closed by remote peer.
1904 */
1905#define MHD_ERR_CONNRESET_ (-3074)
1906
1907/**
1908 * Connection is not connected anymore due to
1909 * network error or any other reason.
1910 */
1911#define MHD_ERR_NOTCONN_ (-3075)
1912
1913/**
1914 * "Not enough memory" error code
1915 */
1916#define MHD_ERR_NOMEM_ (-3076)
1917
1918/**
1919 * "Bad FD" error code
1920 */
1921#define MHD_ERR_BADF_ (-3077)
1922
1923/**
1924 * Error code similar to EINVAL
1925 */
1926#define MHD_ERR_INVAL_ (-3078)
1927
1928
1929
1930
1897#endif 1931#endif