Lines Matching refs:con_info

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