18 lines
360 B
C
18 lines
360 B
C
#ifndef SERVER_H
|
|
#define SERVER_H
|
|
|
|
#define LISTEN_ALL // define to listen on 0.0.0.0, else loopback
|
|
|
|
/* Thread, listens for incoming messages */
|
|
void ClientListener(int);
|
|
|
|
/* Thread, sends messages to the client */
|
|
void ClientSender(int);
|
|
|
|
/* Handles a client after its connection */
|
|
void service(int);
|
|
|
|
/* Handler for signal() */
|
|
void interrupt(int);
|
|
|
|
#endif
|