Completed basic socket work.

Processes multiple requests concurrently (single thread).
Currently just echos received data.
This commit is contained in:
2014-07-17 00:17:30 +01:00
parent 0646b6bf72
commit d556df830f
15 changed files with 2779 additions and 31 deletions

29
src/main.h Normal file
View File

@@ -0,0 +1,29 @@
/*
* File: main.h
* Author: sam
*
* Created on 16 July 2014, 20:18
*/
#ifndef MAIN_H
#define MAIN_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdbool.h>
int main(int argc, char** argv);
void fatal(char* msg);
void warning(char* msg, bool showPError);
void info(char* msg, ...);
#ifdef __cplusplus
}
#endif
#endif /* MAIN_H */