IClientListener.h 343 B

12345678910111213141516
  1. #ifndef ICLIENTLISTENER_H
  2. #define ICLIENTLISTENER_H
  3. #include "common/stream/Stream.h"
  4. class IClientListener
  5. {
  6. public:
  7. virtual ~IClientListener() = default;
  8. virtual void onServerJoin(int serverSocket) = 0;
  9. virtual void onServerPackage(int serverSocket, Stream& in) = 0;
  10. virtual void onServerClose(int socket) = 0;
  11. };
  12. #endif