IClientListener.h 341 B

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