IServerListener.h 353 B

12345678910111213141516
  1. #ifndef ISERVERLISTENER_H
  2. #define ISERVERLISTENER_H
  3. #include "../stream/Stream.h"
  4. class IServerListener
  5. {
  6. public:
  7. virtual void onFullServerClientConnect(int socket) = 0;
  8. virtual void onClientConnect(int socket) = 0;
  9. virtual void onClientPackage(int socket, Stream& in) = 0;
  10. virtual void onClientDisconnect(int socket) = 0;
  11. };
  12. #endif