#ifndef _LIB_H_ #define _LIB_H_ #define BUFSIZE 20 // debug flags #define DEBUG 0x1 #define DEBUG_LEN 40 #include #include #include #include #include #include #include #include #include #include /************************************************ **** Signatures **** ************************************************/ int debug(const char* tag, const char* msg); int xbind(const int port); int xconnect(const char* hostname, const int port, struct sockaddr* serv); int xlisten(const int xsocket, const struct sockaddr *client, char* buffer, int bufsize); int xsend(const int xsocket, char* buffer, struct sockaddr* target); #endif