-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathminitalk.h
More file actions
40 lines (34 loc) · 1.31 KB
/
minitalk.h
File metadata and controls
40 lines (34 loc) · 1.31 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
33
34
35
36
37
38
39
40
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* minitalk.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: elangari <elagari@student.42madrid.co +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/11/29 20:30:46 by elangari #+# #+# */
/* Updated: 2025/11/29 20:30:48 by elangari ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef MINITALK_H
# define MINITALK_H
# include <stdio.h>
# include <unistd.h>
# include <signal.h>
# include <stdlib.h>
# include <stdbool.h>
# include "libft/libft.h"
typedef struct s_sig
{
int cnt;
int size;
int msg_cnt;
int size_buff;
unsigned char mini_buff;
char *msg_buff;
} t_sig;
//server
int ft_isnum(char *s);
void turn_n_send(int pid, unsigned char c);
//client
void sig_manager(int signal_received);
#endif