Completed basic socket work.
Processes multiple requests concurrently (single thread). Currently just echos received data.
This commit is contained in:
29
src/main.h
Normal file
29
src/main.h
Normal 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 */
|
||||
|
||||
Reference in New Issue
Block a user