send_interface.hpp 497 B

12345678910111213141516171819202122
  1. #ifndef __SEND_INTERFACE_H__
  2. #define __SEND_INTERFACE_H__
  3. #include <memory>
  4. #include <string>
  5. /**
  6. * SendInterface
  7. *
  8. * A public interface whose implementation sends a buffer of characters to the
  9. * socket connection indicated by the client_socket_fd (client socket file
  10. * descriptor)
  11. *
  12. * @interface
  13. */
  14. class SendInterface {
  15. public:
  16. virtual void sendMessage(int client_socket_fd,
  17. std::weak_ptr<uint8_t[]> w_buffer_ptr) = 0;
  18. };
  19. #endif // __SEND_INTERFACE_H__