types.h 291 B

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