types.hpp 341 B

12345678910111213141516
  1. #ifndef __TYPES_H__
  2. #define __TYPES_H__
  3. #include <string>
  4. #define MAX_BUFFER_SIZE (4096)
  5. #define SMALL_BUFFER_SIZE (8192)
  6. template <typename MessageProcessor>
  7. void MessageHandler(MessageProcessor processor, int client_socket_fd,
  8. std::string message) {
  9. processor(client_socket_fd, message);
  10. }
  11. #endif //__TYPES_H__