#ifndef NETEX_H #define NETEX_H #include #define PRINT(msg, args...) fprintf(stdout, msg, ##args) #define PRINT_LINE(msg, args...) fprintf(stdout, msg "\n", ##args) #define WARN(msg, args...) fprintf(stdout, "[Warning]: " msg "\n", ##args) #define ERROR(msg, args...) fprintf(stderr, "[ERROR]: " msg "\n", ##args) void netex_init(void); void netex_shutdown(void); // Creates a socket and bind to that socket on the given port and hostname. If done with the socket close it with 'close()' int setup_socket(int port, const char* hostname); #endif //NETEX_H