add sockets

This commit is contained in:
2024-12-24 23:15:44 +01:00
parent 494b835d11
commit bdaf894aea
17 changed files with 354 additions and 7 deletions
+24
View File
@@ -0,0 +1,24 @@
#ifndef Y_CLIENT_H__C
#define Y_CLIENT_H__C
#include <pthread.h>
#include "y_socket/y_socket.h"
struct y_client{
size_t id;
struct y_socket_t *socket;
int nb_threads;
pthread_t *thread_client;
pthread_mutex_t *mut_client;
void *(*launch)(void*);
};
#endif /* Y_CLIENT_H__C */