server.h 449 B

12345678910111213141516171819202122232425
  1. /*
  2. * server.h
  3. *
  4. * Created on: Jan 4, 2018
  5. * Author: sebastian
  6. */
  7. #ifndef SERVER_H_
  8. #define SERVER_H_
  9. #define SERVER_PORT 4242
  10. #define SERVER_CMD_ON "turnon"
  11. #define SERVER_CMD_OFF "turnoff"
  12. #define SERVER_CMD_STATUS "status"
  13. #define SERVER_CMD_BREW "brew"
  14. #define SERVER_CMD_STRIPEON "stripeon"
  15. #define SERVER_CMD_STRIPEOFF "stripeoff"
  16. void *serverThread(void *threadid);
  17. void serverTerminate();
  18. #endif /* SERVER_H_ */