Lines Matching refs:con_info
82 struct connection_info_struct *con_info = coninfo_cls;
85 con_info->answerstring = servererrorpage;
86 con_info->answercode = MHD_HTTP_INTERNAL_SERVER_ERROR;
91 if (!con_info->fp)
96 con_info->answerstring = fileexistspage;
97 con_info->answercode = MHD_HTTP_FORBIDDEN;
101 con_info->fp = fopen (filename, "ab");
102 if (!con_info->fp)
108 if (!fwrite (data, size, sizeof (char), con_info->fp))
112 con_info->answerstring = completepage;
113 con_info->answercode = MHD_HTTP_OK;
123 struct connection_info_struct *con_info = *con_cls;
125 if (NULL == con_info)
128 if (con_info->connectiontype == POST)
130 if (NULL != con_info->postprocessor)
132 MHD_destroy_post_processor (con_info->postprocessor);
136 if (con_info->fp)
137 fclose (con_info->fp);
140 free (con_info);
153 struct connection_info_struct *con_info;
158 con_info = malloc (sizeof (struct connection_info_struct));
159 if (NULL == con_info)
162 con_info->fp = NULL;
166 con_info->postprocessor =
168 iterate_post, (void *) con_info);
170 if (NULL == con_info->postprocessor)
172 free (con_info);
178 con_info->connectiontype = POST;
179 con_info->answercode = MHD_HTTP_OK;
180 con_info->answerstring = completepage;
183 con_info->connectiontype = GET;
185 *con_cls = (void *) con_info;
200 struct connection_info_struct *con_info = *con_cls;
204 MHD_post_process (con_info->postprocessor, upload_data,
212 if (NULL != con_info->fp)
214 fclose (con_info->fp);
215 con_info->fp = NULL;
218 return send_page (connection, con_info->answerstring,
219 con_info->answercode);