Simple echo client

This commit is contained in:
2020-12-10 20:55:33 +01:00
parent 24ce5d8cd6
commit 42b8aee4bd
3 changed files with 81 additions and 38 deletions

View File

@ -9,17 +9,22 @@
#define NECRONDA_SERVER_NECRONDA_SERVER_H
#include <sys/types.h>
#include <stdio.h>
#define NUM_SOCKETS 4
#define NUM_SOCKETS 2
#define MAX_CHILDREN 1024
#define LISTEN_BACKLOG 16
#define ERR_STR "\x1B[1;31m"
#define CLR_STR "\x1B[0m"
#define R_STR "\x1B[31m"
#define G_STR "\x1B[32m"
int SOCKETS[NUM_SOCKETS];
pid_t CHILDREN[MAX_CHILDREN];
FILE *parent_stdout, *parent_stderr;
#endif //NECRONDA_SERVER_NECRONDA_SERVER_H