Lines Matching refs:con_info
904 struct connection_info_struct *con_info = coninfo_cls;
915 con_info->answerstring = answerstring;
917 else con_info->answerstring = NULL;
935 struct connection_info_struct *con_info = *con_cls;
937 if (NULL == con_info) return;
938 if (con_info->connectiontype == POST)
940 MHD_destroy_post_processor (con_info->postprocessor);
941 if (con_info->answerstring) free (con_info->answerstring);
944 free (con_info);
977 struct connection_info_struct *con_info;
979 con_info = malloc (sizeof (struct connection_info_struct));
980 if (NULL == con_info) return MHD_NO;
981 con_info->answerstring = NULL;
986 con_info->postprocessor
988 iterate_post, (void*) con_info);
990 if (NULL == con_info->postprocessor)
992 free (con_info);
995 con_info->connectiontype = POST;
997 else con_info->connectiontype = GET;
1001 *con_cls = (void*) con_info;
1015 struct connection_info_struct *con_info = *con_cls;
1019 MHD_post_process (con_info->postprocessor, upload_data,
1025 else if (NULL != con_info->answerstring)
1026 return send_page (connection, con_info->answerstring);
1126 struct connection_info_struct *con_info;
1134 con_info = malloc (sizeof (struct connection_info_struct));
1135 if (NULL == con_info) return MHD_NO;
1136 con_info->fp = 0;
1142 else con_info->connectiontype = GET;
1144 *con_cls = (void*) con_info;
1158 con_info->postprocessor
1160 iterate_post, (void*) con_info);
1162 if (NULL == con_info->postprocessor)
1164 free (con_info);
1170 con_info->connectiontype = POST;
1171 con_info->answercode = MHD_HTTP_OK;
1172 con_info->answerstring = completepage;
1174 else con_info->connectiontype = GET;
1194 struct connection_info_struct *con_info = *con_cls;
1198 MHD_post_process (con_info->postprocessor,
1205 return send_page (connection, con_info->answerstring,
1206 con_info->answercode);
1228 struct connection_info_struct *con_info = coninfo_cls;
1233 con_info->answerstring = servererrorpage;
1234 con_info->answercode = MHD_HTTP_INTERNAL_SERVER_ERROR;
1246 if (!con_info->fp)
1251 con_info->answerstring = fileexistspage;
1252 con_info->answercode = MHD_HTTP_FORBIDDEN;
1256 con_info->fp = fopen (filename, "ab");
1257 if (!con_info->fp) return MHD_NO;
1264 if (!fwrite (data, size, sizeof(char), con_info->fp))
1270 con_info->answerstring = completepage;
1271 con_info->answercode = MHD_HTTP_OK;
1282 struct connection_info_struct *con_info = *con_cls;
1284 if (NULL == con_info) return;
1286 if (con_info->connectiontype == POST)
1288 if (NULL != con_info->postprocessor)
1290 MHD_destroy_post_processor (con_info->postprocessor);
1294 if (con_info->fp) fclose (con_info->fp);
1297 free (con_info);
2775 struct connection_info_struct *con_info = coninfo_cls;
2787 con_info->answerstring = answerstring;
2790 con_info->answerstring = NULL;
2802 struct connection_info_struct *con_info = *con_cls;
2804 if (NULL == con_info)
2807 if (con_info->connectiontype == POST)
2809 MHD_destroy_post_processor (con_info->postprocessor);
2810 if (con_info->answerstring)
2811 free (con_info->answerstring);
2814 free (con_info);
2827 struct connection_info_struct *con_info;
2829 con_info = malloc (sizeof (struct connection_info_struct));
2830 if (NULL == con_info)
2832 con_info->answerstring = NULL;
2836 con_info->postprocessor =
2838 iterate_post, (void *) con_info);
2840 if (NULL == con_info->postprocessor)
2842 free (con_info);
2846 con_info->connectiontype = POST;
2849 con_info->connectiontype = GET;
2851 *con_cls = (void *) con_info;
2863 struct connection_info_struct *con_info = *con_cls;
2867 MHD_post_process (con_info->postprocessor, upload_data,
2873 else if (NULL != con_info->answerstring)
2874 return send_page (connection, con_info->answerstring);
2986 struct connection_info_struct *con_info = coninfo_cls;
2989 con_info->answerstring = servererrorpage;
2990 con_info->answercode = MHD_HTTP_INTERNAL_SERVER_ERROR;
2995 if (!con_info->fp)
3000 con_info->answerstring = fileexistspage;
3001 con_info->answercode = MHD_HTTP_FORBIDDEN;
3005 con_info->fp = fopen (filename, "ab");
3006 if (!con_info->fp)
3012 if (!fwrite (data, size, sizeof (char), con_info->fp))
3016 con_info->answerstring = completepage;
3017 con_info->answercode = MHD_HTTP_OK;
3027 struct connection_info_struct *con_info = *con_cls;
3029 if (NULL == con_info)
3032 if (con_info->connectiontype == POST)
3034 if (NULL != con_info->postprocessor)
3036 MHD_destroy_post_processor (con_info->postprocessor);
3040 if (con_info->fp)
3041 fclose (con_info->fp);
3044 free (con_info);
3057 struct connection_info_struct *con_info;
3062 con_info = malloc (sizeof (struct connection_info_struct));
3063 if (NULL == con_info)
3066 con_info->fp = NULL;
3070 con_info->postprocessor =
3072 iterate_post, (void *) con_info);
3074 if (NULL == con_info->postprocessor)
3076 free (con_info);
3082 con_info->connectiontype = POST;
3083 con_info->answercode = MHD_HTTP_OK;
3084 con_info->answerstring = completepage;
3087 con_info->connectiontype = GET;
3089 *con_cls = (void *) con_info;
3104 struct connection_info_struct *con_info = *con_cls;
3108 MHD_post_process (con_info->postprocessor, upload_data,
3116 if (NULL != con_info->fp)
3118 fclose (con_info->fp);
3119 con_info->fp = NULL;
3122 return send_page (connection, con_info->answerstring,
3123 con_info->answercode);