projet-multitaches/src/server.h

19 lines
365 B
C
Raw Normal View History

2022-09-13 21:40:23 +02:00
#ifndef SERVER_H
#define SERVER_H
#define LISTEN_ALL // define to listen on 0.0.0.0, else loopback
2022-10-21 09:43:04 +02:00
/* Thread, listens for incoming messages */
void ClientListener(int);
/* Thread, sends messages to the client */
void ClientSender(int, int);
2022-10-21 09:43:04 +02:00
2022-10-19 22:35:06 +02:00
/* Handles a client after its connection */
2022-09-13 21:40:23 +02:00
void service(int);
2022-10-19 22:35:06 +02:00
/* Handler for signal() */
2022-09-13 21:40:23 +02:00
void interrupt(int);
#endif