Compleated main logic

This commit is contained in:
elvis
2022-03-27 00:20:34 +01:00
parent c1977248d7
commit e86f981972
3 changed files with 110 additions and 19 deletions

View File

@ -18,7 +18,8 @@ void threadF(void *arg) {
}
// TODO add necessary variables from main
long* connfd = (long*)arg[0];
long* connfd = ;
fd_set set, tmpset;
FD_ZERO(&set);
@ -38,7 +39,7 @@ void threadF(void *arg) {
goto _cleanup;
continue;
}
break; // r==0 and quit==0
break; // r!=0 and quit==0
}
@ -90,7 +91,7 @@ _cleanup:
}
int parser(int len, char *command, queueT *queue, long fd_c, logT* logFileT, pthread_mutex_t *lock, waitingT **waiting) {
int parser(int len, char *command, queueT *queue, long fd_c, taglia_t* taglia, pthread_mutex_t *lock, waitingT **waiting) {
if(len<0 || !command || !queue || !logFileT || !waiting) {
errno = EINVAL;
return -1;