refactoring; modal window init

This commit is contained in:
2025-11-27 17:19:02 +02:00
parent c524ece546
commit fd73fa7628
23 changed files with 252 additions and 47 deletions
+6 -2
View File
@@ -1,4 +1,8 @@
#include "file_processor.h"
#include "connection.h"
#include "client.h"
#include "main.h"
#include "server.h"
#include <arpa/inet.h>
#include <fcntl.h>
#include <netinet/in.h>
@@ -19,6 +23,7 @@ static void init_query_args(query_args_t *q_args, int sd, char *buf,
enum state state, int buf_used, params_t *params);
static void wait_side(query_args_t *q_args);
void user_request_description(query_args_t *q_args);
int process_query(query_args_t *query_args, file_args_t *file_args);
void query_loop(int sd, params_t *params) {
fd_set readfds;
@@ -26,7 +31,6 @@ void query_loop(int sd, params_t *params) {
size_t qlen;
int sr;
char buf[INBUFSIZE];
char *bufs = buf;
static file_args_t file_args;
static query_args_t query_args;
@@ -114,7 +118,7 @@ int process_query(query_args_t *query_args, file_args_t *file_args) {
wait_side(query_args);
break;
case UPLOAD_FILE:
case ERR:
case STATE_ERR:
break;
case STATE_FILE_LIST:
file_list(file_args, query_args);