1
0

fester.h 469 B

12345678910111213141516171819202122
  1. #ifndef FESTER
  2. #define FESTER
  3. #include <stdint.h>
  4. #ifdef _WIN32
  5. #include <winsock2.h>
  6. #define __STARTUP() WSADATA wsaData; if(dumbdumbdumbdumbdumb(&wsaData)) return 1;
  7. int dumbdumbdumbdumbdumb(WSADATA *w);
  8. #else
  9. #defien __STARTUP() ;
  10. #endif
  11. // get socket, set socket options, bind to a port, and listen
  12. int setup();
  13. struct client* allocateBunnies(int sock);
  14. int somethingNeedDoing(uint16_t milliseconds, struct client * pool);
  15. #endif