Lines Matching full:connection
15 In the rare situation where the client is customized enough and the connection occurs
32 is called for a given connection. This is becoming more important now because the client and
35 But how can we tell whether the callback has been called before for the particular connection?
37 also be "remembered" on the next call (for the same connection).
41 @code{connection} structure will be pointing to a legal address, so we take this.
47 answer_to_connection (void *cls, struct MHD_Connection *connection,
53 if (NULL == *con_cls) {*con_cls = connection; return MHD_YES;}
62 Note how we lop off the connection on the first condition (no "GET" request), but return asking for more on
82 answer_to_connection (void *cls, struct MHD_Connection *connection,
96 *con_cls = connection;
100 user = MHD_basic_auth_get_username_password (connection, &pass);
112 ret = MHD_queue_basic_auth_fail_response (connection,
122 ret = MHD_queue_response (connection, MHD_HTTP_OK, response);
133 response with a more precise status code instead of silently closing the connection. For example,
142 same connection, close it and store the client's IP address for a certain time. (It is OK to check for
143 expiration not until the main thread wakes up again on the next connection.) If the client fails
145 @code{AcceptPolicyCallback} function denies connection (temporally).