aboutsummaryrefslogtreecommitdiff
path: root/launch-socket.h
blob: 2e10b0486e4628472f2dfd70e159af428cdfecd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef launch_socket_h
#define launch_socket_h
#include <unistd.h>
#include <bits/pthreadtypes.h>
#include <pthread.h>
#include <netinet/in.h>
#include <stdio.h>
#include <sys/socket.h>
#include <poll.h>
#include <stdbool.h>
#include <string.h>
#include <Server.h>

int server_close_socket(struct Server *server);

int launch_socket(struct Server *server);

void broadcast(struct Server *server, int socketFD, char* message);
#endif