When we receive a response we are not sure how to handle, try to find a
message and a file in the response and use them.
-static void handle_response_already_found(char *cpf, struct rnet_message *message)
+static void handle_response_text_and_file(char *cpf, struct rnet_message *message)
save_rec_file(cpf, value, vlen);
}
save_rec_file(cpf, value, vlen);
}
+static void handle_response_already_found(char *cpf, struct rnet_message *message)
+{
+ handle_response_text_and_file(cpf, message);
+}
+
static void handle_response_error(struct rnet_message *message)
{
char *value;
static void handle_response_error(struct rnet_message *message)
{
char *value;
}
switch (message->buffer[0]) {
case 1: /* go ahead */
}
switch (message->buffer[0]) {
case 1: /* go ahead */
+ handle_response_text_and_file(cpf, message);
break;
case 3: /* error */
handle_response_error(message);
break;
case 3: /* error */
handle_response_error(message);
+ handle_response_text_and_file(cpf, message);
+ handle_response_text_and_file(cpf, message);