2022-09-13 21:40:23 +02:00
|
|
|
#ifndef SERVER_H
|
|
|
|
#define SERVER_H
|
|
|
|
|
2022-10-19 22:55:51 +02:00
|
|
|
#define LISTEN_ALL // define to listen on 0.0.0.0, else loopback
|
|
|
|
|
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
|