Netzwerk.h 584 B

1234567891011121314151617181920212223242526272829303132
  1. #include <Klient.h>
  2. #include <Thread.h>
  3. #include <Text.h>
  4. using namespace Network;
  5. using namespace Framework;
  6. class ErhaltungKlient : public Thread
  7. {
  8. private:
  9. Klient *klient;
  10. int klientId;
  11. bool abmel;
  12. bool trenn;
  13. int ref;
  14. public:
  15. // Konstruktor
  16. ErhaltungKlient( int klientId );
  17. // Destruktor
  18. ~ErhaltungKlient();
  19. // nicht constant
  20. void verbinden( int mSP, Text *zMSIp, char *netwSchlüssel, char netwSchlüsselLän );
  21. void abmelden();
  22. void trennen();
  23. virtual void thread();
  24. // constant
  25. // Reference Counting
  26. ErhaltungKlient *getThis();
  27. ErhaltungKlient *release();
  28. };