-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathminitalk.h
More file actions
32 lines (27 loc) · 1.21 KB
/
Copy pathminitalk.h
File metadata and controls
32 lines (27 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* minitalk.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lcosta-g <lcosta-g@student.42sp.org.br> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/01/19 22:10:03 by lcosta-g #+# #+# */
/* Updated: 2025/03/06 19:37:57 by lcosta-g ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef MINITALK_H
# define MINITALK_H
# include "libft.h"
# include <signal.h>
# include <unistd.h>
# include <stdlib.h>
typedef struct s_message {
unsigned int byte_i;
unsigned char current_char;
pid_t client_pid;
} t_message;
typedef struct s_client {
unsigned int bits_count;
unsigned int server_confirmation;
} t_client;
#endif